Runtime configs, material problems

praetor

22-11-2005 00:00:59

I have my single page heightfield, and my single page texture.

Setting TextureFormat=Image and setting pointing the config to my texture causes a crash: PagingLandScapeTexture_Image::_loadMaterial.

One of the many material smart pointers is used without being initialized. In the debugger there are some very mangled material and texture names. Things I've never specified anywhere, but that the system seems to be looking for. My full config file:


GroupName=General
DefaultMap=demo

Data2DFormat=HeightField
LandScapeFileName=demo_height
LandScapeExtension=raw

TextureFormat=Image
ImageFilename=demo_surface
TextureExtension=jpg

PageSize=257
TileSize=65


I feel like an idiot asking so many questions, but there are so many configs I can't make heads or tails of what to set where. It seems like the single page heightfield + 1 large texture would be the easiest combo ever, and should be really really easy to get to display.

tuan kuranes

22-11-2005 08:59:35

you might need to specify that you use a RAW file :

Data2DFormat=HeightFieldRaw


You can also make mapsplitter to split and save the Raw File as 16 bits png files, which save you from using raw file. (and save some diskspace.)


DefaultMap=demo sould be in the paginglandscape2.cfg which should be in exe directory (where is plugins.cfg, resources.cfg, etc...)

DefaultMap=mydemo
mydemo=demo_height
GroupName=PLSM2


Current one maybe directing you in a wrong way using demo terrain coming with binary distribution.

if you full config file is named demo_height.cfg.

don't feel like that. The one who should be feeling Idiot is me, not being able to find a way to prevent all those config problem.
which prevent many people to use plsm2.