Camera Zoom (v3.6) to FieldOfView (v4)

Software: Away3D 4.x

Hector, Sr. Member
Posted: 12 December 2011 12:47 PM   Total Posts: 137

Hi guys,
Is camera zoom going to be implemented in away3d v4?

   

John Wilson, Member
Posted: 12 December 2011 06:20 PM   Total Posts: 62   [ # 1 ]

You can achieve zoom by using the fieldOfView property of the camera’s lens.

   

Hector, Sr. Member
Posted: 13 December 2011 07:18 PM   Total Posts: 137   [ # 2 ]

Thanks John,
I’m porting an away v3.6 application to away v4. It has to load the old version settings for zoom, etc., so I need to convert the old 3.6 zoom settings to the new version.

   

Hector, Sr. Member
Posted: 30 December 2011 06:08 PM   Total Posts: 137   [ # 3 ]

Update: I have found this formula, but it doesn’t seems to work for me:

fieldOfView = 2 * arctan(ratio / zoom)
where ratio is ImageWidth / ImageHeight

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X