sebarnolds
27-10-2006 15:34:16
Hi.
I just discovered that, when we initialize an OSMScene object with a scenemanager, then the scene settings such as shadows, fog and world geometry of the oScene file are not loaded. This can be seen in the createScene function. The following code can be seen :
The createSceneManager function load from the oScene file theses parameters but if a scene manager is created and then passed to the oFusion loader then they are ignored.
Is this the behaviour wanted ?
Thanks forward,
Sebastien
I just discovered that, when we initialize an OSMScene object with a scenemanager, then the scene settings such as shadows, fog and world geometry of the oScene file are not loaded. This can be seen in the createScene function. The following code can be seen :
if(mSceneMgr == NULL)
{
if(rootElem->FirstChildElement("sceneManager"))
pParent = createSceneManager(rootElem, bHandled);
else
mSceneMgr = Root::getSingleton().createSceneManager(ST_GENERIC);
}
The createSceneManager function load from the oScene file theses parameters but if a scene manager is created and then passed to the oFusion loader then they are ignored.
Is this the behaviour wanted ?
Thanks forward,
Sebastien