Bug found in NxOgre 05 preview3.

Nazz

21-04-2006 19:47:08

I dont know whether this bug is known to the public(if it is you should really fix it), but i'll post this anyway. The bug prevented me from compiling the tutorials - it's in the files "tutorialfps.h" and "tutorialsimple.h" in the chooseSceneManager function. The error i got from my compiler(Visual C++ 2005 Express) was:

Error 1 error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &' c:\Projects\OGRE\ogrenew\NxOGRE\NxOgre\NxTutorials\Common\tutorialSimple.h 100

First the original function:

void chooseSceneManager(void) {
mSceneMgr = mRoot->getSceneManager(ST_GENERIC);
}


..and the fix(taken from the OGRE samples ExampleApplication.h):

void chooseSceneManager(void) {
mSceneMgr = mRoot->createSceneManager(ST_GENERIC, "ExampleSMInstance");
}


Please, excuse me if this mistake was discussed before, i'm just trying to help. Cheers!

joi

21-04-2006 20:16:42

I think thats just the way scene manager works now. You need to give it also a name. Guessing you are using dagon for this (latest version). :)

betajaen

21-04-2006 21:43:55

The CVS supports the new scene manager system, infact NxOgre supports multiple scenemanagers at a time.

If you're using Dagon with NxOgre I strongly suggest you upgrade to the CVS version. :D