[Help] Using Map Splitter

seljo

11-03-2009 15:04:40

I am a newbie to OGRE, and the basic demos are pretty easy to run, but I a need to have a paging terrain capability. I have compiled the Map Splitter Tool, but I do not understand what inputs it wants. I have also compiled the PLSM2 demo, but I get errors such as "Error loading texture hf129_3.Base.0.0.png" which lead me to trying to run the Map Splitter Tool. The MapSplitterFrontEnd says "please provide all the necessary parametres." I have not found a wiki entry, or otherwise, that explains how to run the MapSplitterTool. :cry:

Anybody who has used it and can explain it to me, or point me to an explanation, will be my hero!

Zero23

11-03-2009 15:30:51

Does your Mapsplitter find the "maptool.cfg" ? May this is the error.

Greetings
From Zero to Hero XD

seljo

11-03-2009 16:05:21

If I run mapslitter.exe without the "frontend" GUI app, I get this:

"Cannot locate resource Alpes.gen.cfg in resource group PLSM2 or any other group."

Zero23

11-03-2009 16:11:15

Do you have modified your resources.cfg? That mapsplitter can find the location of "Alpes.gen.cfg".

Zero

seljo

12-03-2009 13:47:04

Thanks again, Zero!

I realized as soon as I posted that last one that it was a path problem. Thanks for helping me talk through it. However, I still don't understand what it is doing or how to use it on my own terrain... Do you know of any good threads that can help with that? I am looking @ the demo right now and hope to move on to trying to use one of my own terrains soon.

Thanks again! :)

Zero23

12-03-2009 15:42:45

Sorry I dont know some threads ... Search here in the forum. I started with PLSM2 last friday^^ and had a lot of bugs since friday -.- ^^

Zero

seljo

12-03-2009 17:57:22

Ok, so I got the alpes running in the demo and I moved on to the grand canyon. Mapsplitter is crashing on it, not a config problem (I don't think). Crashes after "created : gcanyon_texture_4k2k.3.1.png" in the log. The error occurs in Mapsplitter.cpp @ line 754:


for (uint j = 0; j < tile_height_copy; j++)
{
754 memcpy (&dest[destIdx], &src[srcIdx], dest_shift_copy);
destIdx += dest_shift;
srcIdx += src_shift;
}



on the last time through the loop (j=512) it throws an access violation. Have you seen this or any ideas? The obvious is that the index is in protected memory, but I don't know what is causing it on this map vs. the other one.

seljo

12-03-2009 22:40:14

Well, it may be a cfg... I changed gcanyon_height_4k2k.gen.cfg PageSize=513 to PageSize=512 and mapsplitter will run. NOW I get an assertion in the demo app:

"(texture size / (pagesize-1)) and texture stretch factor defined in terrain config file doesn't fit."

seljo

12-03-2009 22:43:28

The assertion was fixed by changing the the stretch factor to 0.5 in gcanyon_height_4k2k.cfg and re-running the mapsplitter tool. Now it appears that the mapsplitter is not naming file correctly, as I get "PLSM2 : Cannot find map named gcanyon_height_4k2k.0.6.png" I know I have seen other posts related to this, so I will try to find them.

DragonM

22-03-2009 20:56:31

The assertion was fixed by changing the the stretch factor to 0.5 in gcanyon_height_4k2k.cfg and re-running the mapsplitter tool. Now it appears that the mapsplitter is not naming file correctly, as I get "PLSM2 : Cannot find map named gcanyon_height_4k2k.0.6.png" I know I have seen other posts related to this, so I will try to find them.
Yes, it doesn't name files correctly. Here's a link to a patch, for future reference: Ogre3d Addon Forums