Eihort problem

Dibalo

14-03-2007 16:58:03

Hi.

I just downloaded Ogre Eihort. So I thought that PLSM should updated too. I downloaded the latest CVS-version and compiled it. Now i have some problems with map loading.. If I try to load map with this code: System::getSingleton().SceneManager->setOption("CurrentMap", &name);
if( !System::getSingleton().SceneManager->setOption("LoadMap", &name) ) OGRE_EXCEPT(0, "Map loading failed.", "BaseMapManager::loadMap");
System::getSingleton().SceneManager->setOption("LoadNow", NULL);
It only gives me that exception. So it looks like something got wrong. I also noticed that I can´t set world geometry with this code:mSceneMgr->setWorldGeometry( "" );
With Dagon, that was possible. My question is: how can I load map with Eihort?

Thanks.

EDIT: My problem is similar to this: http://www.ogre3d.org/phpBB2addons/view ... enemanager

clutch43

15-03-2007 00:55:42

I have been having same type of problems recently., it worked in Dagon with no problems., now in Eihort 1.4 rc2(source), it seems to build ok, and run., but unable to see terrain because it will flash by at warp speed ( tsmterrain) using w,s keys,,,or terrain will not show up at all.,Alps,for one., ( just using the supplied maps(+grand canyon,ps sound etc.,)from demo.,),eventually causing exception when i change maps (n),or texture(k).,more less what i see is a blue screen with one main light. Map Splitter seems to do it's thing, resources ok aswell...i'm stumped..,also i get this., with Alps in plsm2 log.:Cannot find map named alpes.1.0.png. ( its not on my hard drive).., was mapsplitter suppose to produce this?..i honestly havent tryed yet to get in my own terrain i made using L3dt.,i would like to get the demo working first. Wish i had an answer for you.

Dibalo

15-03-2007 10:41:43

Hi and thanks for your answer.

My English skills are not good enough so could you make you answer clear? :/ You have invented the solution? What is it? :D

clutch43

15-03-2007 11:13:47

Hi Dibalo,
I am still trying to find a solution/fix. Will post if i find something. Just tryed again., pagingLandscape(CVS),ran plsm2_vc8.sln,,,same thing.

Mapsplitter does split up maps and place them in proper folders.,ie.terrain/Alps's etc....not a resource problem as far as i can see here anyway. Let u know if i find something.., dont wait up. lol

NO solution yet. :cry:

Dibalo

15-03-2007 18:19:46

I think that the problem is that Ogre doesn´t register PL scene manager. Instead of that, it registers only generic scene manager, which doesn´t support "LoadNow"-option or world geometry. This is just a quess. ;)

EDIT: I´m pretty sure of it. When I commented out the PLSM-plugin declaration from my plugins.cfg file, the problem is exactly same: OGRE EXCEPTION(2:InvalidParametersException): World geometry is not supported by the generic SceneManager. in SceneManager::setWorldGeometry at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogrescenemanager.cpp (line 1301)So it looks like that there is something problem in either plugin registeration or scene manager registeration.

EDIT2: Hmmm.. It looks like the plugin registration works fine. This is from my Ogre.log:20:36:25: Loading library ./plugin\RenderSystem_Direct3D9_d
20:36:25: Installing plugin: D3D9 RenderSystem
20:36:25: D3D9 : Direct3D9 Rendering Subsystem created.
20:36:26: D3D9: Driver Detection Starts
20:36:26: D3D9: Driver Detection Ends
20:36:26: Plugin successfully installed
20:36:26: Loading library ./plugin\RenderSystem_GL_d
20:36:26: Installing plugin: GL RenderSystem
20:36:26: OpenGL Rendering Subsystem created.
20:36:27: Plugin successfully installed
20:36:27: Loading library ./plugin\Plugin_ParticleFX_d
20:36:27: Installing plugin: ParticleFX
20:36:27: Particle Emitter Type 'Point' registered
20:36:27: Particle Emitter Type 'Box' registered
20:36:27: Particle Emitter Type 'Ellipsoid' registered
20:36:27: Particle Emitter Type 'Cylinder' registered
20:36:27: Particle Emitter Type 'Ring' registered
20:36:27: Particle Emitter Type 'HollowEllipsoid' registered
20:36:27: Particle Affector Type 'LinearForce' registered
20:36:27: Particle Affector Type 'ColourFader' registered
20:36:27: Particle Affector Type 'ColourFader2' registered
20:36:27: Particle Affector Type 'ColourImage' registered
20:36:27: Particle Affector Type 'ColourInterpolator' registered
20:36:27: Particle Affector Type 'Scaler' registered
20:36:27: Particle Affector Type 'Rotator' registered
20:36:27: Particle Affector Type 'DirectionRandomiser' registered
20:36:27: Particle Affector Type 'DeflectorPlane' registered
20:36:27: Plugin successfully installed
20:36:27: Loading library ./plugin\Plugin_BSPSceneManager_d
20:36:27: Installing plugin: BSP Scene Manager
20:36:27: Plugin successfully installed
20:36:27: Loading library ./plugin\Plugin_OctreeSceneManager_d
20:36:27: Installing plugin: Octree & Terrain Scene Manager
20:36:27: Plugin successfully installed
20:36:27: Loading library ./plugin\Plugin_CgProgramManager_d
20:36:28: Installing plugin: Cg Program Manager
20:36:28: Plugin successfully installed
20:36:28: Loading library ./plugin\Plugin_PagingLandScapeSceneManager2_d
20:36:28: SceneManagerFactory for type 'PagingLandScapeSceneManager' registered.


EDIT3: Ok.. Maybe I quessed wrong. I noticed that "Plugin successfully installed" -note is missing after PLSM-plugin installation. So I made a little debugging round and I noticed some weird thing. I took my Ogre::Root-object under watch and looked to it´s "mPlugins"-array. There was SIX installed plugins! SIX?! If my math is correct, I can count seven plugins in the log. And also in my plugin.cfg file...

My plugin.cfg looks like this: # Defines plugins to load

# Define plugin folder
PluginFolder=./plugin

# Define plugins
Plugin=RenderSystem_Direct3D9_d
Plugin=RenderSystem_GL_d
Plugin=Plugin_ParticleFX_d
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_CgProgramManager_d
Plugin=Plugin_PagingLandScapeSceneManager2_d

clutch43

15-03-2007 20:55:06

I noticed you are working on debug dll's., have you tryed building in release?., with same problem? I think your plugins working ok by looks of ur log., here's mine., i did change a line in my plugin.cfg., was missing a "./"...thanks for making me look into that. hehe

15:06:42: Particle Affector Type 'Rotator' registered
15:06:42: Particle Affector Type 'DirectionRandomiser' registered
15:06:42: Particle Affector Type 'DeflectorPlane' registered
15:06:42: Plugin successfully installed
15:06:42: Loading library .\Plugin_PagingLandScapeSceneManager2
15:06:42: SceneManagerFactory for type 'PagingLandScapeSceneManager' registered.
15:06:42: *-*-* OGRE Initialising
15:06:42: *-*-* Version 1.4.0RC2 (Eihort)
15:06:42: Creating resource group Bootstrap
15:06:42: Added resource location '../../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
15:06:42: Added resource location '../../../Media' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/fonts' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/models' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/overlays' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/particle' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/gui' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
15:06:42: Added resource location '../../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
15:06:42: Creating resource group PLSM2
15:06:42: Added resource location '../../../Media/paginglandscape2' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/gui' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/fonts' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/models' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/overlays' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/materials' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/materials/scripts' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/materials/textures' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/materials/programs' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: Added resource location '../../../Media/paginglandscape2/terrains' of type 'FileSystem' to resource group 'PLSM2'
15:06:42: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 7950 GX2
15:06:42: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
15:06:42: D3D9 : RenderSystem Option: Anti aliasing = None
15:06:42: D3D9 : RenderSystem Option: Floating-point mode = Fastest
15:06:42: D3D9 : RenderSystem Option: Full Screen = No
15:06:42: D3D9 : RenderSystem Option: VSync = No
15:06:42: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour

Am going to build in debug.,be able to chk deeper...I did run my L3DT terrain through map splitter and spat out files in proper locations., with same results., was a shot in the dark. hehe.., :) k :)

Dibalo

16-03-2007 13:46:36

I noticed you are working on debug dll's., have you tryed building in release?., with same problem? Nope. I haven´t tested release mode yet.

Dibalo

16-03-2007 14:46:24

Ok ok.. I have figured out the first problem. How do you create your scene manager? I think something like this:void BaseApplication::createSceneManager()
{
mSceneMgr = mRoot->createSceneManager(Ogre::ST_EXTERIOR_REAL_FAR, "MyOGREsmgr");
}

I searched the PLSM2 demo application and noticed that the scene manager creation is done by a little different. So I changed my scene manager creation from that to this:void BaseApplication::createSceneManager()
{
mSceneMgr = mRoot->createSceneManager("PagingLandScapeSceneManager", "MyOGREsmgr");
}
Now my application registers PLSM to scene manager, not Generic. I think this is some kind of bug. But but... My problems are not over yet. :( My application crash when I try to load map. My problem is now similar to this: http://www.ogre3d.org/phpBB2addons/view ... ght=eihort

I got a picture from my IDE with debugging: http://koti.mbnet.fi/masa_89/kuvia/problem.png
As you can see, "e" is pointing to NULL and that causes the crash. In line 132 i get the "e" -pointer. The whole line doesn´t exist in that picture but I can copy it here:GpuConstantDefinition const * const e = params->_findNamedConstantDefinition("splatSettings", false);So the code should return a named constant definition. If you look my picture again, you can notice that the map has 4 errors instead of names like "splatSettings". Maybe this is the problem.. What do you say?

P.S. The picture is telling wrong; I have no Vista. I have XP Pro.

clutch43

17-03-2007 02:33:23

mSceneMgr = mRoot->createSceneManager("PagingLandScapeSceneManager", "PagingLandScapeDemo" );

pretty much what i have., I have been able to get tsmTerrain to work in demo.,after changing the TSMterrain.cfg file..the camera base y pos is way off. which sort of makes u believe you have an empty blue screen.,i lowered it to 600 from 32000,and now when i load map it correctly views landscape and able to navigate with w,s,a,d keys without going into light speed.., it is the only map i can load though,and view correctly.,.,how long does it take for your mapsplitter to run a batch run on the demo terrains? (6 maps)..It takes me about 1 min., does that sound right?.,seemed to remember taking it much longer before..,also have u tryed
# Define plugin folder
PluginFolder=.

just curious., mine is like this.

Dibalo

17-03-2007 06:47:21

It seems that you are not using splatting. I´m using Splatting shader so that´s why the crash. And nope, I haven´t ran mapsplitter after patch.

My plugin configuration is:PluginFolder=./plugins
And I have a "plugins" called folder.