PDA

View Full Version : messiah script: GetViewZoom function


lechoo
08-26-2004, 07:13 PM
Hi everyone.
I'm trying to read camera zoom with messiah script. To do that I set current view to camera and use GetViewZoom(_World). But it returns 0.0. Only when viewport is set to perspective this function returns 4.0. Am I doing it right at all?
Can someone give me a tip how to solve this?

lmilton
08-27-2004, 10:41 PM
Get/SetViewZoom don't work on Camera views because zoom is a motion component of the camera. Just get the zoom channel from the Camera.


-lyle

lechoo
08-29-2004, 03:16 PM
Thanks, it worked. But now I have another problem. I want to export camera to 3ds max. To do that I need position, rotation and focal length. First two are no problem, but how can I calculate focal length having zoom distance? I've been experimenting with camera parameters and looks like FocalLength = (ZoomDistance/2)*ApertureHeight. Can anyone confirm if that is correct?

Nando
08-29-2004, 06:57 PM
lechoo,

I dont have the answers to your question, but maybe I can lead you in the right direction for help.
Try the Yahoo Project Messiah Development list.
You will probably get quicker reply's there. ;)


http://groups.yahoo.com/group/pmGdev/

lechoo
08-29-2004, 09:12 PM
Thanks, I completly forgot about that :D

CGTalk Moderation
01-19-2006, 01:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.