[Papervision3D] Understanding Camera Properties

Dan0 daniel.c.6503 at gmail.com
Sat Feb 23 17:21:34 PST 2008


Thanks!
Of course I do understand about moving the camera around x,y,z. But its the
difference between zoom and focus.

Here is what I have concluded:
- Zoom is simply a scale to increase the size of what your looking at
- Focus however changes the perspective but this changes some other things
too and needs to be used in relation to the objects you see, the zoom and
the distance you are away from them.

Some more detail would be nice though, mainly what effects you can achieve
and what equations you can use.

Something I managed to work out over a long time. If you want to view a face
of say a cube at its actual size in pixels this is how you do it:
- add your default cube, say 500x500x500 (w,h,d)
- add your default camera at 0,0,-1000 (x,y,z)
- depending on how far away from your camera the face is you can work out
what focus and zoom to use -  if the focus is the default 100, the distance
away from the camera is 750 (1000-500/2) so your zoom is 8.5.
- this will give you a face which is viewed at exactly 500x500 in real x,y
stage coordinates

The random formula I got (which I know is wrong) is: 
(camera distance from plane)/(camera focus)=(camera zoom)-1 to give it the
exact size

Cool hockey put game though. I managed to score a few times! Yay!

Thanks for the help,
Dan
-- 
View this message in context: http://www.nabble.com/Understanding-Camera-Properties-tp15652554p15659626.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list