Problem splitting map at different page and til sizes

jirvan

21-03-2006 05:30:01

I setup and ran a map of my own based off the gcanyon cfg files from the samples. When I made my new heightmap i built it 4096x4096 and changed the width height to 8 and 8 instead of 8 and 4. All went well.

Then I read that making the pagesize and tilesize larger may help performance. So I increased Pagesize to 1025, tilesize to 129, and set width / height to 4 and 4. (Modified config files below). I deleted the split maps and re ran mapsplitter. Everything split with no problems. When i run the demo I get this error now.

"declared worldsize <> height map size"

This is on 1.2 source release and PLSM2 src from Tuan's site DL'ed yesterday.

running W2k and VC8

<update>

ran the debugger and pagesize is still set at default (513) when

OgrePagingLandScapeData2D.cpp(line 80) - PagingLandScapeData2D::load is called on page 1,1.

Will check into it more tomorrow. Im tired and may have typod somewhere. Will rebuild everything fresh as well.

Thanks



------testmap1_4k4k.cfg-------

GroupName=PLSM2
LandScapeFileName=testmap1_4k4k_hm
TextureStretchFactor=2

OutDirectory=E:/Dev/Ogre1.2/ogrenew/media/paginglandscape2/terrains/LandScapeFileName

PageSize=1025
TileSize=129

ColorMapName=testmap1_4k4k_tx.png
ColorMapSplit=yes
HeightMap=yes


MiniMap=yes
MiniMapWidth=256
MiniMapHeight=256


---------testmap1_4k4k.gen.cfg----------

GroupName=PLSM2

LandScapeFileName=testmap1_4k4k_hm
FileSystem=E:/Dev/Ogre1.2/ogrenew/media/paginglandscape2/terrains/LandScapeFileName

Width=4
Height=4

ScaleX=90000
ScaleY=30000
ScaleZ=90000

Deformable=yes
VertexCompression=yes
VertexProgramMorph=yes
MaxPixelError=8

-- cut short (no changes)---

tuan kuranes

21-03-2006 09:20:44

Deformable=yes
VertexCompression=yes
VertexProgramMorph=yes
MaxPixelError=8


those should be in terrain cfg not in terrain gen.cfg

Otherwise, I cannot reproduce your bug.

maxwave

04-04-2006 16:42:41

Please help me, I have a problem similar to this. I loading in scene demo map gcanyon_height_4k2k and allright. There are page size 513 (gen.cfg) and height=4 , width=8 (.cfg).
I change page size from 513 to 1025 (in gen.cfg), change hieght to 2, width to 4 and resplit map. When I run application I get error:
"Declared World size <> height map size"
Why??? What I should to do for fix this problem?

jirvan

05-04-2006 00:41:34

Check that your source (or SDK) and the PLSM2 source are the correct versions.

My problem ended up being having two different versions of Ogre ( I'm developing on one and trying to fix the backgroundrenderqueeu in the other). I had an environment variable set wrong when I compiled and it was linking to some of the libs in the other source tree.

maxwave

05-04-2006 10:15:02

Anybody know this?

I use:
- Dagon 1.2 RC
- PLSM2 (recently downloaded) - This version is used only with Dagon
I have other version(1.07) Ogre too, but I don't use it recently and I use PLSM inly with Dagon.

maxwave

05-04-2006 11:28:57

That's OK!!! I understand, where was my error. When I resize Page size in .gen.cfg I will have to add resize line "PageSize=" in .cfg too. I solved this problem after read thread http://www.ogre3d.org/phpBB2addons/view ... c&start=15 and copy .cfg files in my maps options and check, where the problem was.