Hey George have you tried using the PerspectiveLens() object for the lens property of the camera. The default lens in Away3D is a legacy from papervision, with focus and zoom controling different aspects of the projection matrix. with CS4, there is really only one aspect - the scale. I know there are two variables for the PerspectiveProjection object but these values are linked - adjust the fieldOfView property and you'll change the focalLength property
After setting up the new lens by writing: myCamera.lens = new PerspectiveLens(); you only have one value to adjust on this lens - the zoom. this should in theory be set ot 1/10th of the focalLength property of the root PerspectiveProjection object (at least, thats what i see when i look at the equations). Give it a try and let us know if it works! Rob On Fri, Jan 8, 2010 at 1:14 PM, George Profenza <[email protected]> wrote: > Ok, > > I feel I'm almost there with the matching. > > Need some help on the last bits. > > I've posted the question here as well, > more images and exaplanations there: > > > http://stackoverflow.com/questions/2021718/how-to-match-away3d-camera-to-flash-cs4-ide-camera > > On Jan 8, 1:13 pm, George Profenza <[email protected]> wrote: > > Can I add an image ? > > > > <img src='http://i984.photobucket.com/albums/ae330/orgicus/ > > cs4_planes.gif' /> > > [html]<img src='http://i984.photobucket.com/albums/ae330/orgicus/ > > cs4_planes.gif' />[/html] > > > > On Jan 6, 6:35 pm, George Profenza <[email protected]> wrote: > > > > > Hello, > > > > > I need to use some animations made by the designer using the Motion > > > Editor in Flash CS4. > > > > > My first approach was to get the x,y,z and rotationX,rotationY and > > > rotationZ properties from the clips on stage > > > at the keyframes. > > > > > If I make a plane with the same dimensions in Away 3D it looks ok by > > > default, if start using the x,y,z positions from CS4 everything gets > > > crowded, objects are too close together. > > > > > How can I match the CS4 numbers using Away3D, any magic ratio ? > -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
