A second Scene, how?

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
Van
Posts: 9
Joined: Fri Oct 29, 2004 3:31 am

A second Scene, how?

Post by Van »

We have a game. Now, someone wants to see a "map" and press the "M" key. What is the recomened way to draw the map?

I would think you would create a new (second) SceneManager which would in effect create another "window" on top of the current SceneManager. Is this correct or is there a better way?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Does it have to be in 3D? If not, then just create a new IGUIWindow and draw your 2D image at the right position :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

If it does need to be in 3D then I would recommend using the same scene but with different viewports. Offset the map you are going to show by a distance further than the far clipping plane and you have in effect two psudo scenes.

I can't remember the internal workings but I'm pretty sure that if you called getSceneManager() twice then you would just get two pointers to the same scene manager.
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

http://www.irrlichtnx.mmdevel.de/phpBB2 ... .php?t=192
Seems like someone has created a device containing multiply scene managers :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
Van
Posts: 9
Joined: Fri Oct 29, 2004 3:31 am

Post by Van »

yes, we need it to be a 3D space.

We would prefer not tampering with the Irrlicht code because when a new release comes out its always a hassle to reintegrate.

Also, panning far out in the current scene is an option but we want to change the scale and camera view, etc, etc, etc. Doing this would create such an issue.
Post Reply