opengl- rotating camera around object

Feb 27, 2006 at 2:50pm

opengl- rotating camera around object


another question :-)

i want to rotate (circle) the opengl camera around one specific object…

i can set the lookat-coordinates of the camera to fix it at an specific point…
now i have to change the x and z axis of the camera itself to rotate around the object…

it should be a simple mathformula for calculating the position in a circle… something with sin-cos.. ??

is there an special object or can you tell me the formular…

i not a mathgenius by the way…


Feb 27, 2006 at 3:01pm

have a look at jasch’s collection of objects, which has many tools
useful for your purpose:

another tip is to search for all 3rd party


Feb 27, 2006 at 5:03pm

… and also the [poltocar] object should be useful.

Feb 27, 2006 at 5:13pm

Such things only have effect if you use a background, or other objects
in combination to the object you want to rotate around. Else just
rotating the object itself would be fine.

Just some hints :)


You must be logged in to reply to this topic.