Cameras Rotations and Animation Problems

Colbey

22-02-2007 15:37:06

I have been experimenting with Cameras and have come across 2 major problems that are stopping us from proceeding. Firstly the initial rotation set on the camera is not the same as the first keyframe. As you can see in the piece of code i've extracted from the OSM.


<cameras>
<camera name="Camera_Act1" FOV="0.785398">
<position x="2.53722" y="1.65001" z="-2.90794" />
<rotation x="-0.730794" y="0.215008" z="-0.265987" w="-0.59073" />
<scale x="1" y="1" z="1" />
<clipPlane NEAR="0.5" FAR="500" />
<animations>
<animation name="Scene1" loop="false" length="15">
<keyframe time="0">
<position x="2.53722" y="1.65001" z="-2.90794" />
<rotation w="0.934459" x="0.0990402" y="-0.340115" z="0.0360477" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.0666667">
<position x="2.54047" y="1.65001" z="-2.91155" />
<rotation w="0.934487" x="0.0988592" y="-0.340098" z="0.0359789" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.133333">
<position x="2.55017" y="1.65001" z="-2.92231" />
<rotation w="0.934569" x="0.0983284" y="-0.340048" z="0.0357773" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.2">
<position x="2.56625" y="1.65001" z="-2.94017" />
<rotation w="0.934701" x="0.0974661" y="-0.339966" z="0.0354501" />
<scale x="1" y="1" z="1" />
</keyframe>
</animations>
</camera>
</cameras>


This is quite a major thing because if i've got a camera with no keyframes on the rotation is completely out. This leaves us no ability to quickly move from one camera to another.

The second thing is that Ofusion doesn't export the roll animation on cameras. by changing the roll value in max u can simulate the effect but as soon as i try to keyframe or pick a value other than 0 it resets.

Any ideas on what is causing either of these? ways to fix it? or are these bugs in Ofusion?

Cheers

Nick

Lioric

22-02-2007 16:57:05

Could you provide a test scene where this can be reproduced?

Colbey

22-02-2007 17:24:13

here is the file i've been working with:

http://www.3dweedy.co.uk/Camera_Scene.zip

There are two cameras in the scene, "Camera_TopView" showing a top down view of the path. this has no animations and does not load in correctly.

The other camera is "CameraWalk" which has one animation on, this animation plays correctly, but the start rotation of the camera is incorrect (different to the first keyframe).

Hope this is enough information to help.

Cheers

Nick

Colbey

22-02-2007 17:49:26

Just from looking at this further we've discovered another anomaly....



as you can see the top camera is the max viewport with camera and bottom is ofusion viewport. The Ofusion view is further away from the object, whether this is an FOV issue or positioning issue i'm not sure, the camera in max is showing a position of "x=-2.07,y=8.893,z=443.855" and in the OSM (linked above cos its from the same file) it's "x=-2.0704 y=443.855 z=8.89328" but it happens with every camera i make and export....

Colbey

19-03-2007 16:32:07

we have recently discovered what the problem with the FOV on this camera was, the value exported by Ofusion is the HORIZONTAL FOV, in Ogre it appears to use the VERTICAL FOV as standard. Is there anyway to export the vertical FOV using OFusion?