RichTufty
03-12-2008 15:47:12
Hi all, I'm pulling my hair out over this one, looked high and low!
I am creating a sky box using SetSkyBox on the SceneManager.
Fine. Works.
Now i want to remove just the sky box from my game. I've tried the following but the sky box doesn't get removed!
Any ideas?
Many thanks,
Tufty
I am creating a sky box using SetSkyBox on the SceneManager.
Fine. Works.
Now i want to remove just the sky box from my game. I've tried the following but the sky box doesn't get removed!
//crashes!
sceneMgr.DestroySceneNode(sceneMgr.SkyBoxNode.Name);
//still there
sceneMgr.DestroyManualObject(sceneMgr.SkyBoxNode);
//still there
sceneMgr.SkyBoxNode.Dispose();
Any ideas?
Many thanks,
Tufty