Page 1 of 1

What is the best way to separate scenes?

Posted: Wed Sep 19, 2007 6:53 pm
by Mr.Gluck
Hi all.
I want to use one IrrlichtDevice and IrrlichtDriver. And many ISceneManager, IGUIEnvironment.

So, in main cycle I want to change sceneManager and guiEnv from another class with another scene. I do it so:

Code: Select all

static public void changeActiveScene(ISceneManager newScene, IGUIEnvironment newGUIEnv)
    {
      smgr = newScene;
      guienv = newGUIEnv;
    }
...and ther render it(smgr and guienv).

But I got one general scene with all nodes from all scenes.

So, what is the best way to separate scenes(game and menu for example) ?

Posted: Fri Sep 21, 2007 8:46 pm
by Mr.Gluck
no ideas ?

Posted: Tue Sep 25, 2007 10:21 am
by Umbra
If i remember correcly you can set id´s to scenes and then recall the id later.