how to set camera fov

Software: Away3D 4.x

datouaizi, Member
Posted: 04 June 2012 02:10 PM   Total Posts: 98

how to set camera fov and zoom? model looks like unnormal!

   

Avatar
theMightyAtom, Sr. Member
Posted: 04 June 2012 07:37 PM   Total Posts: 669   [ # 1 ]

view.camera.lens = new PerspectiveLens(60).

That should give you a perspective lens with VERTICAL fov of 60 degrees.
Then you can change the fov like

(view.camera.lens as PerspectiveLens).fieldOfView = 54;

Making the fov smaller has the effect of zooming. Otherwise you will have to dolly the camera (move it in and out!)

I stress the vertical because I once waisted a whole afternoon trying to match with a photograph before realising :O)

Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X