Scene Manager error

GeneralLee

28-10-2010 19:56:19

Hello it's me again... I've downloaded NxOgre 1.5.5 and it seems to be more documented,though i have new errors.
[attachment=0]fxz.PNG[/attachment]

why does it crash on this line?

betajaen

28-10-2010 20:04:14

mSceneMgr is a null pointer.

GeneralLee

28-10-2010 20:06:29

and how do i fix it(sorry for such a newbish question)... It seems to me that lines are in correct order,aren't they?

betajaen

28-10-2010 20:12:51

Create the Scene Manager and assign the pointer to mSceneMgr?

GeneralLee

28-10-2010 20:35:09

Isn't it created with this line?
Ogre::SceneManager* mSceneMgr;

betajaen

28-10-2010 20:35:55

Nope, your declaring the pointer but not actually creating the SceneManager.

GeneralLee

28-10-2010 20:43:33

like this?
mSceneMgr = mRoot->createSceneManager(Ogre::ST_GENERIC, "Fail");
it doesnt help too.

GeneralLee

28-10-2010 21:42:22

Sorry, i apologize for my stupidity... root was not created.

Now i need to render this...ehmm... something= )

spacegaier

28-10-2010 23:36:51

So solved now? Looks like the Ogre basics ;) .