What is the best way to separate scenes?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Mr.Gluck
Posts: 82
Joined: Tue Aug 31, 2004 8:02 pm

What is the best way to separate scenes?

Post 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) ?
Mr.Gluck
Posts: 82
Joined: Tue Aug 31, 2004 8:02 pm

Post by Mr.Gluck »

no ideas ?
Umbra
Posts: 19
Joined: Sun Aug 26, 2007 12:54 pm

Post by Umbra »

If i remember correcly you can set id´s to scenes and then recall the id later.
Post Reply