Dibalo
22-03-2007 15:07:27
Ok. I don´t want to be rude but I have a problem with splatting via shaders.
My application crashes during map loading. I got a picture from my IDE with debugging: http://koti.mbnet.fi/masa_89/kuvia/problem.png
As you can see, "e" is pointing to NULL and that causes the crash. In line 132 i get the "e" -pointer. The whole line doesn´t exist in that picture but I can copy it here:
So the code should return a named constant definition. If you look my picture again, you can notice that the map has 4 errors instead of names like "splatSettings". Maybe this is the problem.. What do you say?
My map config file looks like this:
Does anyone else have this kind of problem? Am I the only one who got this problem?? I´m using SplattingShader, do you know if the other shaders are working? PLSplattingShaderLit? I have developed a game a long time and I don´t want that it stops because of this problem...
Please. Any opinions and advices are welcome. Is there any way to get rid of this problem somehow? What should I try to do to fix this problem?
My application crashes during map loading. I got a picture from my IDE with debugging: http://koti.mbnet.fi/masa_89/kuvia/problem.png
As you can see, "e" is pointing to NULL and that causes the crash. In line 132 i get the "e" -pointer. The whole line doesn´t exist in that picture but I can copy it here:
GpuConstantDefinition const * const e = params->_findNamedConstantDefinition("splatSettings", false);
So the code should return a named constant definition. If you look my picture again, you can notice that the map has 4 errors instead of names like "splatSettings". Maybe this is the problem.. What do you say?
My map config file looks like this:
GroupName=PLSM2
TerrainName=Nemeko
LandScapeFileName=Nemeko
LandScapeExtension=png
Deformable=no
Width=2
Height=2
ScaleX=500
ScaleY=300
ScaleZ=500
PageSize=129
TileSize=65
MaxPixelError=5
MaxRenderLevel=2
NumMatHeightSplat=4
NumTextureFormatSupported=1
TextureFormat=SplattingShader
TextureFormatSupported0=SplattingShader
SplatFilename0=grass.png
SplatFilename1=rock.png
SplatFilename2=dust.png
SplatFilename3=cobble.png
TextureModifiable=no
TextureStretchFactor=2
VertexCompression=yes
Does anyone else have this kind of problem? Am I the only one who got this problem?? I´m using SplattingShader, do you know if the other shaders are working? PLSplattingShaderLit? I have developed a game a long time and I don´t want that it stops because of this problem...
Please. Any opinions and advices are welcome. Is there any way to get rid of this problem somehow? What should I try to do to fix this problem?