Scenes and switching between them

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Posts: 1
Joined: Thu Oct 12, 2017 1:41 am

Scenes and switching between them

Post by jadiah » Thu Oct 12, 2017 1:47 am

Hello, I'm new to OGRE engine, is there a way to create multiple scenes (for game levels for example) with the ability to switch between them and load/unload resources?
0 x

Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 14

Re: Scenes and switching between them

Post by frostbyte » Fri Oct 13, 2017 12:57 am

sure there is, for loading/unloading resources look into ResourceGroupManager::addResourceLocation, ResourceGroupManager::initialiseResourceGroup , ResourceGroupManager::destroyResourceGroup ... nager.html

ogre does support multiple scenes/viewports, but for moving between levels you don't really need multiple scene
just remove all the sceneNodes and destroy/free all the entities, take notice that unloading a resource from memory will probably fail if the resource is still referenced( there is some sort of reference-counter )
i think you can look in the sampleBrowser on how to do the clean-up
1 x
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...

Post Reply