Flickering

Description

All movable objects must have a scene node. Moving the scene node of a camera create a very nasty flickering. Moving the camera is working well.

I create a camera and attach it to a special SceneNode (m_pEgoSceneNode).

1 2 3 4 m_pCamera = m_pSceneMgr->createCamera(PROJECTNAME + Ogre::String("Camera")); Ogre::SceneNode* pn = m_pCamera->getParentSceneNode(); pn->detachObject(m_pCamera); m_pEgoSceneNode->createChildSceneNode(Ogre::SCENE_DYNAMIC)->attachObject(m_pCamera);

I use this method to setup multiple cameras with different views for multiple monitor outputs. The main idea was to move and rotate only the main SceneNode instead of each camera.

To update the node in frameStarted I calculate a Ogre::Vector3 pos and a Ogre::Quaternion qrot.

Flickering:

1 2 m_pEgoSceneNode->setPosition(pos); m_pEgoSceneNode->setOrientation(qrot);

Non-flickering:

1 2 m_pCamera->setPosition(pos); m_pCamera->setOrientation(qrot);

Regards,
Transporter

Environment

None

Status

Assignee

Matias Goldberg

Reporter

OgreT

Components

Affects versions

2.0.0 RC1
2.0.0

Priority

Critical
Configure