opengl- rotating camera around object

Tilgino's icon

hi...

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...

thx
peter

Johnny deKam's icon

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

another tip is to search http://maxobjects.com/ for all 3rd party
options

-deKam

oliver griem's icon

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

Maarten's icon

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 :)