View Full Version : Any known solutions to a camera that...
11-29-2003, 07:59 AM
...rotates on a far off point, rather than the center of the screen?
11-29-2003, 02:32 PM
how about translating the scene ??
12-01-2003, 10:46 AM
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.
12-01-2003, 10:51 AM
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).]
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.