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 / Rotate camera arround object

Author
Message
Domino
15
Years of Service
User Offline
Joined: 31st Jan 2009
Location:
Posted: 31st Jan 2009 18:59
I'm new to Dark GDK and also to 3D math but I need some tips on rotation. Specifically, I need the default camera 0 to rotate around an object such as a sphere and implement a cinema view for 9 seconds. The cinema view needs to cut the screen off by 25% at top and bottom using black. Hope this makes sense or I'll elaborate more if needed. Thanks in advance for your help.

Left lane means go faster than right lane
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 31st Jan 2009 21:05 Edited at: 31st Jan 2009 21:08
Two functions to find position from object at a required distance and angle:



Declare two variables:
(change angle every loop for circular motion)


Position camera:


NOTE: Only rotates around y-axis. (could be extended or changed for more rotation, but I usually change the height-yaxis-seperataly)
Domino
15
Years of Service
User Offline
Joined: 31st Jan 2009
Location:
Posted: 31st Jan 2009 23:54
Thanks matty halewood that worked perfectly!

I had to add the following line after dbPosition camera



Left lane means go faster than right lane

Login to post a reply

Server time is: 2024-09-30 17:42:31
Your offset time is: 2024-09-30 17:42:31