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 :)
> rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com
I've managed to get a closer match from a Blender scene to an Away3d
scene.
Here is a screenshot of how close I got:
http://i984.photobucket.com/albums/ae330/orgicus/blender2awayCamera.gif
The white WireframeMaterial cube is from Away3D, the background is a
default render
from Blender.
I've uploaded a simplified version of my test filed (.as, .fla, .jpg
(for tracing), .blend and .py)
here:
http://groups.google.com/group/away3d-dev/web/georgeprofenza_blender2Away3DSetupSimple.zip
At this point, I'm just using a camera facing forward a cube. I've
played with the z and fov properties
to match the look than used the numbers to change the script. I have
tested the view
with a cube with no rotation at all, and then the view with the cube
rotated by 45 degrees on Y in Away3D
and it matches the Blender look close enough.
At this point, it is not exact science, I'm just tinkering, but
hopefully I can get this to be useful.
Rob and Dennis,
Thanks for the input at LFPUG.
All the best,
George
On Jan 5, 6:40 pm, George Profenza <orgi...@gmail.com> wrote:
> Hi Rob,
>
> Thanks for the input.
>
> I've looked atcameraproperties a bit.
> As far as I can see:
>
> FP10 fieldOfView(in PerspectiveProjection) is equivalent tocamera.fov
> in away3d and equivalent toCamera.angle inBlenderPython
> FP10 focalLength(in PerspectiveProjection) is equivalent tocamera.focus in away3d and equivalent toCamera.lens inBlenderPython
>
> Here are the relevant API links:
> FP10:http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/geom/PerspectiveP...
> Away3D:http://away3d.com/livedocs/away3d/cameras/Camera3D.htmlBlender:http://www.blender.org/documentation/249PythonDoc/Camera.Camera-class...
>
> I have attached my current setup here:
>
> http://groups.google.com/group/away3d-dev/web/georgeprofenza_blender2...
>
> The zip contains image screenshots, ablenderscene, a small python
> snippet that prints numbers to the console
> and the test .as file.
>
> What am I missing ? Thecameraand objects seem to be in the right
> position, not so sure aboutblendercameralens and angle
> matching up with Away3D'scamerafocus 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 <rob.bate...@gmail.com> wrote:
>
> > Hey George
>
> > In Away3d, thecameraclass comes with its fov property which should work as
> > expected to set the vertical fov in degrees. Also, to match the perspective
> > projection of theblenderview 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 <orgi...@gmail.com> wrote:
> > > Hi,
>
> > > I'm trying to match thecamerasettings fromblenderin away3d.
>
> > >Blender'scameramain 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 away3dcamerawith theblenderone ?