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
mCaelumSystem->setAutoMoveCameraNode(false); Ogre::SceneNode *caelumCameraNode = mCaelumSystem->getCaelumCameraNode(); caelumCameraNode->setPosition(trNode->_getDerivedPosition();); caelumCameraNode->_update(true, true);