Scale based off of PerspectiveLense FOV

Software: Away3D 4.x

frank_, Newbie
Posted: 26 July 2012 08:21 PM   Total Posts: 12

Sorry for the open ended question but I’m not really sure as of yet how to go about this.

I’m looking for a way to scale an ObjectContainer3D inversely to a PerspectiveLense’s FOV.

I have a “zoom” function implemented that changes the lens FOV, I’m trying to negate that zoom on a group of objects so they appear fixed.

I was thinking there may be a way to crate a transform matrix or somehow scale this group inversely to the lens FOV.

If not does anyone have some input on how else to go about this?

The end goal here is to just create a group of objects that do not zoom with the camera.

Thanks!

   

Richard Olsson, Administrator
Posted: 27 July 2012 08:48 AM   Total Posts: 1192   [ # 1 ]

You can employ a similar approach to what I describe in the following thread, but do the projection step every frame (since the FOV and thus the projection changes) instead of just once during initialization.

http://away3d.com/forum/viewthread/2923

There are other ways as well, but this is probably the simplest. Unless performance becomes an issue, I see no reason to pursue the more mathematical approaches.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X