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: Camera in openGL

  1. #1
    Guest

    Camera in openGL

    anyone knows how to create an interactive camera in openGL responsed to the keyboard input, like 'W' means going forward, 'S' means going backward, 'D' ratate the scene clockwise, 'A' ratate the scene anti-clockwise.

    Thanks in advance

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Dresden, Sachsen, Germany
    Posts
    205

    Re: Camera in openGL

    create a class that does the transformation for you

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    Pasadena, CA
    Posts
    6

    Re: Camera in openGL

    The Red Book (also known as the OpenGL Programming Guide) is your friend, especially the chapter on viewing. It'll tell you how to position the camera and move it around in your scene, or, alternatively, fix the camera's position and move the objects in the scene.

    If you don't have a copy of the Red Book I believe you can find HTML and PDF versions of an older edition on this site. But get a copy if can swing it -- it's essential if you're serious about learning OpenGL.

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2005
    Location
    Italy
    Posts
    7

    Re: Camera in openGL

    Hi!
    If you didn't find it yet, this is the code i think you need.
    A c++ class just named Camera that allows you to move or strafe in all directions you want.

    http://twiki.dsi.uniroma1.it/twiki/v...ome/camera.zip

    I hope it will help,
    bye

Posting Permissions

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