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: Any known solutions to a camera that...

  1. #1
    Intern Newbie
    Join Date
    Oct 2003
    Posts
    35

    Any known solutions to a camera that...

    ...rotates on a far off point, rather than the center of the screen?
    DirectX: A giant pile of undocumented CRAP

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    211

    Re: Any known solutions to a camera that...

    how about translating the scene ??
    DJSnow

  3. #3
    Intern Newbie
    Join Date
    Oct 2003
    Posts
    35

    Re: Any known solutions to a camera that...

    Brilliant idea! Gosh I'm on the beginner's forum, so I MUST be a complete dolt! Ok. With a post like that one, either you think I'm an idiot, or more likely, you are.
    DirectX: A giant pile of undocumented CRAP

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,755

    Re: Any known solutions to a camera that...

    Maybe you should be more specific with your question if you want more specific answers.

    As DJ said, you need to translate your scene so that the point you want to rotate around is at 0,0,0, then translate it back. Remembering in the process that OpenGL's transformations occur in reverse order, and that you don't move the camera, you move the scene the opposite of what your "camera" would move.

    If that didn't make sense, look for a PDF of the Red Book and read its chapter on transformations. You might even try looking at the Technical FAQ on this site. (Available in the Quick links drop down.) There are a number of questions there related to "camera" transformations.


    [This message has been edited by Deiussum (edited 12-01-2003).]
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

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