Hi Rob,

Thanks for the input.

I've looked at camera properties a bit.
As far as I can see:

FP10 fieldOfView(in PerspectiveProjection) is equivalent to camera.fov
in away3d and equivalent to Camera.angle in Blender Python
FP10 focalLength(in PerspectiveProjection) is equivalent to
camera.focus in away3d and equivalent to Camera.lens in Blender Python

Here are the relevant API links:
FP10:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/geom/PerspectiveProjection.html
Away3D:
http://away3d.com/livedocs/away3d/cameras/Camera3D.html
Blender:
http://www.blender.org/documentation/249PythonDoc/Camera.Camera-class.html

I have attached my current setup here:

http://groups.google.com/group/away3d-dev/web/georgeprofenza_blender2Away3DSetup.zip

The zip contains image screenshots, a blender scene, a small python
snippet that prints numbers to the console
and the test .as file.

What am I missing ? The camera and objects seem to be in the right
position, not so sure about blender camera lens and angle
matching up with Away3D's camera focus and fov.

Any input to get me unstuck will help,
I'll tinker away in 3d meantime :)

On Dec 10 2009, 2:58 am, Rob Bateman <[email protected]> wrote:
> Hey George
>
> In Away3d, the camera class comes with its fov property which should work as
> expected to set the vertical fov in degrees. Also, to match the perspective
> projection of the blender view i would use Perspectivelens instead of the
> default. If you play with the fov values, you should be able to get a
> perfect match
>
> Rob
>
>
>
> On Fri, Nov 27, 2009 at 4:40 PM, George Profenza <[email protected]> wrote:
> > Hi,
>
> > I'm trying to match the camera settings from blender in away3d.
>
> > Blender's camera main property is Lens as far as I can see.
>
> > Camera3D in away3d has focus and zoom.
> > No fov, or anything else
>
> > How can I match the away3d camera with the blender one ?
> > I am using away3dlite, but I see there is a lenses package in the
> > away3d api.
> > Any starting points ?
>
> > Thanks,
> > George
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]

Reply via email to