Page 1 of 1

Caelum with rotating camera

Posted: Sun Jan 20, 2019 11:59 pm
by elventian
Ogre Version: 1.9
Operating System: Debian
Render System: OpenGL

Hello to everyone. I'm trying to use Caelum with non-static camera (i change pitch and yaw of camera by mouse move). and everything works fine except Sun is changing it's location every time I rotate camera.
SceneNodes I use:
Root -> trNode (with some constant translation) -> yawNode (apply yaw on mouse move) -> pitchNode (apply pitch on mouse move)
The last node (pitchNode) contains Ogre::Camera.

Feels like Caelum recalculates position of the Sun depending on Camera orientation, not only position.
I tried (with the same result)

Code: Select all

Ogre::SceneNode *caelumCameraNode = mCaelumSystem->getCaelumCameraNode();
caelumCameraNode->_update(true, true);
So what is the right way to use Caelum with non-static camera?