Skip to content

unic8 Studios

Documentations Tutorials FAQs Links Advanced search
You are here: Home arrow News arrow Labs arrow Advanced camera on PV3D
Advanced camera on PV3D
Sunday, 29 July 2007

Today I played a 3D racing game... never mind? Ok, the reason why I write this was especially the "replay" after the race. Everybody who ever played 3D racing games know this and remembers the view from many cameras placed around the track replaying the whole race. These cameras rotate to focus a car, zoom in and out and also switch to the next camera when the distance from the car is closer that one. So this is what I built with PV3D. I placed 3 different cameras (front, diagonal and side), a plane (for the base) and a cube. The cube moves and rotates via the Tweener class

  • Camera selection: "Auto" detects the nearest camera to the cube but you can also select a specific camera.
  • Camera control: Defines the focused object
  • Mouse pitch:Enables the mouse to change the view angles
  • Zoom control: "Auto" enables camera to zoom in by using the distance to the object. With "Manual" you can setup the factor and "Reset" restores the default value.
Trackback(0)
Comments (4)add comment

Frank Fuhrmann said:

 
It's breathtaking awesome, dude!
2007-07-31 11:45:01 | url

alex said:

 
Great example. Why source is not supplied. If control is not for selling, source supplement will be good as a teaching point. Thx anyway. Alex Winx (www.winx.ws)
2008-01-23 12:33:06 | url

sshong said:

 
hi, friend, i have a problem about cube's rotation, when i add rotations together, the result seems to be wrong, but when i add just single rotation, it seems right, is there any bug in pv3d's displayobject3d's rotation?
2008-08-04 00:38:26 | url

erik said:

 
Hi sshong,

could you please specify which rotations you tried to add. As far as I know there's no bug with DO3D's rotation. If you would like to you can also send me a code sample with shows the problem.
2008-08-04 10:14:53 | url

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security image
Write the displayed characters


busy
 
< Prev   Next >

Polls

Which data exchange technology do you prefer?