loading/unloading maps

loading/unloading maps

Postby rogerdv » 16 Mar 2010, 13:09

Currently im working to implement scene load/unload in my game project. Im using Ogre, and I have found a problem, at least in version 1.6: to remove the terrain I have to clear the scene, removing also the characters nodes. My idea was just to make the characters nodes invisible, but now seems that Ill have to figurre out a way to recreate the nodes when the map is loaded again.
I would like to know how other developers are dealing with such problem, what do they do with scene nodes when a map is unloaded, etc. Any opinions?
User avatar
rogerdv
 
Posts: 289
Joined: 10 Dec 2009, 18:26

Re: loading/unloading maps

Postby ghoulsblade » 17 Mar 2010, 08:19

one possibility would be to make one "root"-node per level, and set that one invisible (subnotes won't be drawn, so you only need to toggle this one). i think it's also quite common to clear the entire scene, saves ram.
User avatar
ghoulsblade
Global Moderator
 
Posts: 138
Joined: 08 Nov 2009, 22:47

Who is online

Users browsing this forum: No registered users and 1 guest

cron