Results 1 to 7 of 7

Thread: Zoom and pan features with the help of mouse

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    NY
    Posts
    20

    Zoom and pan features with the help of mouse

    Hi ,
    I need your help guys !!
    I have created the model.

    I want to zoom in and out with the help of mouse center scroller rotation. Also I want to pan the model with the help of clicking in the model.
    Can some one give me some solve template of how to perform this.
    or any sample code.
    Any help will be appreciated caus its very urgent.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    CA
    Posts
    408

    Re: Zoom and pan features with the help of mouse

    If you are using GLUT take a look at gltzpr.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    NY
    Posts
    20

    Re: Zoom and pan features with the help of mouse

    Is there any other way of achieving the desire results.

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    NY
    Posts
    20

    Re: Zoom and pan features with the help of mouse

    I need to use keyboard and mouse functions (callback functions) to zoom and pan camera (the camera function that has been provided needs to be modified). This is the requirement for completing the project.

  5. #5
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Zoom and pan features with the help of mouse

    Is there any other way of achieving the desire results.
    You mean a way other than downloading a library that does exactly what you need?

    Yes. You could just write it yourself. The documentation for GLUT/FreeGLUT explains how to get mouse input.

    This is the requirement for completing the project.
    This sounds suspiciously like homework. In which case you should already know everything you need to make it work.

  6. #6
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    11

    Re: Zoom and pan features with the help of mouse

    hi
    for clicking(picking) problem this is very good tutorial

    http://gpwiki.org/index.php/OpenGL:Tutorials:Picking

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    NY
    Posts
    20

    Re: Zoom and pan features with the help of mouse

    Yeah every one comes to openGl for either of these three things:
    1) Project or office work
    2) Homework
    3) Research Work

    The irony is that no one teaches anything these days every thing we need to learn by our own. But OpenGL forum is really helpful for people like me!!

Similar Threads

  1. Mouse click to zoom on object
    By sutanmudo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-17-2017, 06:18 AM
  2. Zoom In, Zoom Out, Pan using Mouse
    By VishwaSwamiG in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-16-2014, 11:09 PM
  3. Right mouse Button and Mouse Movement for Zoom?
    By GrimmBro in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-20-2011, 04:45 AM
  4. How to zoom gradually around the mouse pointer..??
    By rakesh_thp in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-01-2009, 01:35 AM
  5. zoom Mouse cursor
    By couet in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-11-2005, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean