Buckcherry
15-11-2008 20:56:24
Hi everybody,
I am trying to fix the MapEditor tool included in the SVN repository.
At the moment I got the terrain deformation working.
I have changed the .layout files which were in the old CEGUI format.
But now, I am having troubles trying to get the painting working.
My paginglandscape2.cfg is:
My terrain.cfg is:
I am running the application in debug mode with the _PLSM_OCTREE definiton in the preprocessor settings.
When I run the application it crashes at line 271 from OgrePagingLandscapeTextureManager.cpp:
Any idea?
I am trying to fix the MapEditor tool included in the SVN repository.
At the moment I got the terrain deformation working.
I have changed the .layout files which were in the old CEGUI format.
But now, I am having troubles trying to get the painting working.
My paginglandscape2.cfg is:
DefaultMap=My_Terrain
#DefaultMap=none
#DefaultMap=terragen_genrated
European_Alpes=Alpes
Terrain_Scene_Manager_Terrain=TsmTerrain
hf=hf_129_3
My_Terrain=terrain
# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits
#NewWorld2=NewWorld2
#alfons_1k=alfons_1k
#startingIsland=startingIsland
# resource group name where to find map definition
GroupName=PLSM2
# Try forbidden textureformat combinations
TextureFormatDebug=no
My terrain.cfg is:
GroupName=PLSM2
Width=1
Height=1
Data2DFormat=HeightField
LandScapeFileName=terrain
FileSystem=TsmTerrain
TextureStretchFactor=1
NumTextureFormatSupported=11
TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting5
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting7
TextureFormatSupported7=SplattingShader
TextureFormatSupported8=ImagePagingLight
TextureFormatSupported9=PLSplattingShaderLitDecompress
TextureFormatSupported10=InstantBaseEdit
#TextureFormat=ImagePagingLight
TextureFormat=InstantBase
ImageFilename=terrain_texture
ScaleX=15000
ScaleY=1000
ScaleZ=15000
Deformable=yes
TextureModifiable=yes
VertexCompression=no
VertexProgramMorph=no
VertexNormals=no
NumMatHeightSplat=4
Height1=15
Height2=50
SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png
# where to put camera on load.
BaseCameraViewpoint.x=935.0f
BaseCameraViewpoint.y=24000.0f
BaseCameraViewpoint.z=-432.0f
Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f
I am running the application in debug mode with the _PLSM_OCTREE definiton in the preprocessor settings.
When I run the application it crashes at line 271 from OgrePagingLandscapeTextureManager.cpp:
newTexture->load(x, z);
Any idea?