Ogremax Camera Orientation Problem

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
erqsor
Halfling
Posts: 47
Joined: Mon May 10, 2010 4:04 pm

Ogremax Camera Orientation Problem

Post by erqsor »

Hi,

I created a free camera in 3DSMax that I exported using Ogremax, but have some problems computing the orientation values.

Here is the part of XML dotscene file :

Code: Select all

        <node name="Camera001">
            <position x="0" y="29.8503" z="-19.903" />
            <scale x="1" y="1" z="1" />
            <rotation qx="0.5" qy="-0.5" qz="0.5" qw="0.5" />
            <camera name="Camera001" fov="0.602557">
                <rotation qx="-0.707107" qy="-0" qz="-0" qw="0.707107" />
                <clipping near="2.54" far="2540" />
            </camera>
        </node>
I precise that my XML parser works perfectly and the values parsed are good.
The position values are OK.
The camera I created for my test is simply placed : it facing UNIT_X_POSITIVE.

First, I see that I have 2 rotation property (1 for node and 1 for camera), and none have is an unit quaternion...
why ?

And secondly, the rotation values are strange.

I verified the values with the tutorial on the quaternions, and I think that there is a problem. Do you think that too ?
http://www.ogre3d.org/tikiwiki/Quaterni ... =Tutorials

Say me if I made a mistake, but :
for the first quaternion, rotation of 120 degrees ???
for the second quaternion, rotation of 90 degrees ?
The second could be correct if the UNIT direction must change (but I'm not sure with the axis).
Why the 120 on the node. It should not be oriented ?!
Someone can help me plz ?
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Ogremax Camera Orientation Problem

Post by spacegaier »

Best to ask that the OgreMax support. This is the wrong place for such questions.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
erqsor
Halfling
Posts: 47
Joined: Mon May 10, 2010 4:04 pm

Re: Ogremax Camera Orientation Problem

Post by erqsor »

Thanks for your remark.
The problem is that there is not a support for free users, so I post here thinking that I am not the only user that uses Ogremax (?)
For moment, I just want to know if this values are wrong or if I made a mistake in my code :/
erqsor
Halfling
Posts: 47
Joined: Mon May 10, 2010 4:04 pm

Re: Ogremax Camera Orientation Problem

Post by erqsor »

hi,

So, I tested some camera configurations, and remarked that whatever the camera parameters, the orientation of the camera element is always like that :

Code: Select all

            <camera name="..." fov="...">
                <rotation qx="-0.707107" qy="-0" qz="-0" qw="0.707107" />
            </camera>
I only got this values, so I think I must work without this parameter :/ (for instance)
Post Reply