[info] Paging landscape and dotsceneoctree

barnabe42

04-10-2005 20:44:23

I dont know if it's possible but I would like to know if I could use dotsceneoctree plugin under PLSM2.

Thanks

tuan kuranes

04-10-2005 21:00:02

it's not actually possible, but you surely can patch plsm2 to do so.

Use the dotscene load mechanism with the page load listener, and add the SceneOctreeRenderable to a Normal Node, or batch meshes into staticgeometry and you're done.

Plsm2 will add it to the correct octree, specially if renderables have a name that begins with "Static".

barnabe42

06-10-2005 06:47:09

Sorry for this question I'am a bit confused
can you be a bit more specific.

I'm far from a expert so I need a bit of help.

Thanks

tuan kuranes

06-10-2005 08:21:08

from dosceneoctree take the xml stuff + sceneoctreerenderable.

use the terrainlistener page load event (look plsm2 demo) to load those sceneoctreerenderable depending on thei position.

barnabe42

18-10-2005 14:50:54

here an easy way of using .scene with PLSM2 with the DotSceneInterface plugin. I'm still trying to make it working with dosceneoctree.

Add this to the createScene function :


getFileTitle(sceneFileName, groupName);
StringUtil::trim(groupName);
ResourceGroupManager::getSingletonPtr()->createResourceGroup(groupName);
ResourceGroupManager::getSingletonPtr()->addResourceLocation( sceneFilePath, "FileSystem", groupName);
ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

dsi::dotSceneLoader *mpSceneLoader;
mpSceneLoader = new dsi::dotSceneLoader();

mpSceneLoader->load(sceneFileName, groupName, mSceneMgr, mWindow, NULL, false, false, true);