[solved] Problem with mapsplitter.

Dale_ee

04-09-2006 11:57:47

[maptool.cfg]
DefaultMap=alfons

alfons=alfons_4k.gen

#European_Alpes=Alpes.gen
#TSMTerrain=TsmTerrain.gen
#hf_129_3=hf_129_3.gen

# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
#puget_sound=puget_1k.gen
#grand_canyon=gcanyon_height_4k2k.gen
#terragen_genrated=terragen16bits.gen


# resource group name
GroupName=PLSM2

#do you want to run it on all maps listed here
BatchMode=yes

[alfons_4k.gen.cfg]
GroupName=PLSM2
LandScapeFileName=alfons_4k_height
LandScapeExtension=png

TextureStretchFactor=1

OutDirectory=LandScapeFileName

PageSize=513
TileSize=65

ColorMapName=alfons_4k_texture.png
ColorMapSplit=yes
HeightMap=yes

MiniMap=No

[]

Texture file is 4096*4096*24bit png
and heightmap is 4097*4097*256 png.

Mapsplitter builds right texture tiles, but as for heightmap, I get blank black images. Tried to use something else than png, but got a crash.
Didn't debug yet, maybe the problem isn't so serious.

tuan kuranes

05-09-2006 08:30:50

CVS, SDK ?
16 bits png or 8 bits ?
no log error ?

Dale_ee

05-09-2006 09:18:14

CSV
8 bit (I couldn't export 16bit png). Tried saving 16 bit *.tif, but didn't work either.(exception).
Log told no errors, except there was written Bypp = 2, instead on 1. And this happens with all heightmaps I try to split. But when I try some not-png format with 16 bit depth, then exception occurs.
Some hours later today I can give you more information, currently don't have a source code to test.

tuan kuranes

05-09-2006 14:33:00

I uploaded a new version that has better log if you wish to try out.

Dale_ee

05-09-2006 14:54:23

Thanks, I'll tell about results soon.

Dale_ee

05-09-2006 16:33:47

That was my bad. heightmap png was saved as Indexed, though took 1 byte/pixel. My viewers perfectly worked with it, but as for Ogre, I think it did't read it propery.

Great thanks, anyway.