Camera getDerivedOrientation() not working with Autotracking

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Camera getDerivedOrientation() not working with Autotracking

Post by al2950 »

Firstly appologies if this is not a bug and just me being stupid, please delete/move if needed!

I need to know the cameras Derived Orientation (for use in Hydrax) however if autotracking is enabled the getDerivedOrientation() method in Ogre::Camera always returns an IDENTITY Quaternion. This does not seem correct/desirable behaviour to me.

P.S Using Ogre 1.7
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4

Re: Camera getDerivedOrientation() not working with Autotrac

Post by tuan kuranes »

I would say that if "camera->getParentSceneNode->getDerivedOrientation()" doesn't give the good orientation either, that means it just lacks an update ( like SceneNode::update(true, true) )
Otherwise that might be a bug indeed.

Best would be to do a step by step debug inside camera getDerivedOrientation() and see where it gets its derived information from ?
Post Reply