Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Zoom without using GLUT.....and Toggle b/w views

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    2

    Zoom without using GLUT.....and Toggle b/w views

    hello,
    i am working on my project where a part of it has a graphical 3-D simulation of a spacecraft revolving around the earth..
    i m using QT provided by nokia,in which i am not able to use GLUT libraries...so please help me in ..
    1.creating a 3D zoom function
    2.toggling between different views(global view,close view of spacecraft,close view of earth etc) of the same scene using keys of the keyboard.....
    plz reply soon....i have to meet deadlines.
    thank you in advance

  2. #2
    Intern Contributor
    Join Date
    Aug 2009
    Posts
    65

    Re: Zoom without using GLUT.....and Toggle b/w views

    Hi Amijeet,

    1.creating a 3D zoom function
    To create a 3D zoom you can:

    1- vary the Field Of View in your projection
    2- vary the dimensions of your viewport
    3- you can move the camera forward/backward.

    2.toggling between different views(global view,close view of spacecraft,close view of earth etc) of the same scene using keys of the keyboard.....
    To have different views of your scene you can assign to each view (each key of the keyboard) a different camera's position.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    2

    Re: Zoom without using GLUT.....and Toggle b/w views

    hi Exoide
    thanks for ur reply....but i'm not an expert in opengl programming....can you help me with an example program...or sample code.

  4. #4
    Intern Contributor
    Join Date
    Aug 2009
    Posts
    65

    Re: Zoom without using GLUT.....and Toggle b/w views

    I don't have an example but I think out there must be a lot of them try googling.

    Read this page carefully here's a very good explanation about cameras.

    http://glprogramming.com/red/chapter03.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •