[solved]Splatting crashes (Ogre Eihort)

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: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? :roll:

nindim

22-03-2007 15:42:51

Read this: http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3789 located two posts below your own (at the moment anyway) Maybe search would have yielded quicker results for you?

Dibalo

22-03-2007 18:13:57

Read this: http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3789 located two posts below your own (at the moment anyway) Maybe search would have yielded quicker results for you?

Holy shit... My bad... :( I´m very sorry. I thought that that topic gives notihing useful to me. I was wrong! Thank you!

Again.. My apoligizes... :roll:

nindim

22-03-2007 18:50:02

Dont worry so much, it's ok. Everyone's happy now, so it's all good.

blinkeye

11-06-2007 08:09:08

Looks like more people are having this problem (i.e. http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3610). Where is the solution to this problem posted? I cannot find it in the above linked topic :cry:

blinkeye

19-06-2007 14:29:32

Although quite a few things recently changed in CVS I'm back to this very problem.