Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Rotating the camera around an object?

Author
Message
Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 8th Nov 2008 02:31
Can anyone offer me some code for rotating the camera around an object?

ow! that hurt!
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 8th Nov 2008 09:46
like side strafing around it? Here is what I would do, there may be a better way:
[on first frame]
-set camera to point at object

[every frame after]
-rotate camera 90 degree right
-move camera forward
-rotate camera 90 degree left
-set camera to point at object

and that should look reasonably smooth.
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 9th Nov 2008 02:39 Edited at: 9th Nov 2008 02:40
This was written for an object, but I'm sure simple modification will make it work for a camera.



Cheers.

Login to post a reply

Server time is: 2024-09-30 09:17:43
Your offset time is: 2024-09-30 09:17:43