grizzley90
05-01-2007 21:05:17
I updated my plsm 2 plugin, compiled it, and now I am getting a
Assertion failed.
According this wiki page http://www.ogre3d.org/wiki/index.php/Pa ... nfig_files
a 1024 texture with a 513 page size would have a texturestretchfactor of 2. If I specify the texture stretch factor and if I don't specify it, it gives me the same exception(2,2.0f values don't work). So this is what my config file looks like:
If you want my data files you can get them from here: http://www.uploading.com/files/6GO85JLQ/level1.zip.html
I hope I am not doing anything stupid. This same configuration was working before I updated.
This was compiled with msvc 2005 and with the sdk.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!
Program: ...
File: ..\src\OgrePagingLandScapeTexture.cpp
Line: 829
Expression: mImages[channel].getHeight() / (mParent->getOptions()->PageSize - 1) == mParent->getOptions()->TextureStretchFactor && String("(texture size / (pagesize-1)) and texture stretch factor defined in terrain config file doesn't fit.").c_str()
Assertion failed.
According this wiki page http://www.ogre3d.org/wiki/index.php/Pa ... nfig_files
a 1024 texture with a 513 page size would have a texturestretchfactor of 2. If I specify the texture stretch factor and if I don't specify it, it gives me the same exception(2,2.0f values don't work). So this is what my config file looks like:
####### Generated by Terrain Generator #######
####### FileName: level1.cfg ######
####### RUNTIME FILE: This is the run-time file used to load the terrain into the scene ######
TerrainName=level1
## General Options ##
GroupName=level1
Zip=Media\level1.zip
HeightMapFileName=earthsculptortest
HeightMapExtension=png
ColorMapFileName=earthsculptortestmap_c0
ColorMapExtension=png
## Paging Related Options (no effect if Paged=no) ##
Width=2
Height=2
PageSize=513
TileSize=65
Data2DFormat=HeightField
MaxValue=0
MinValue=0
## Terrain Properties ##
ScaleX=90000
ScaleY=15000
ScaleZ=90000
Deformable=no
VertexCompression=yes
VertexProgramMorph=yes
LODMorphStart=0.2
MaxPixelError=3
TextureStretchFactor=2.0f
## Lighting Options ##
VertexNormals=no
VertexLit=no
## Texture Properties ##
ColorMapStretchFactor=2
NumTextureFormatSupported=16
TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=Base2
TextureFormatSupported3=InstantBase
TextureFormatSupported4=Splatting
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting4
TextureFormatSupported7=Splatting6
TextureFormatSupported8=Splatting7
TextureFormatSupported9=Base
TextureFormatSupported10=Base2
TextureFormatSupported11=InstantBase
TextureFormatSupported12=Splatting3
TextureFormatSupported13=Splatting5
TextureFormatSupported14=SplattingShader
TextureFormatSupported15=InstantBaseShadowed
TextureFormat=ImagePaging
NumMatHeightSplat=4
MaterialHeight0=0
MaterialHeight1=12
MaterialHeight2=60
MaterialHeight3=75
#Sand
MaterialColor0=1.0f 1.0f 0.0f 1.0f
#Grass
MaterialColor1=0.13f 0.545f 0.13f 1.0f
#Rock
MaterialColor2=0.411764f 0.411764f 0.411764f 1.0f
#Snow
MaterialColor3=1.0f 0.98f 0.98f 1.0f
#needs to be in maptool directory
SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png
BigImage=no
VertexColors=no
CoverageVertexColor=no
BaseVertexColor=no
BaseVertexShadow=no
BaseVertexInstantColor=no
## Performance Options ##
VisibleRenderables=200
DistanceLOD=5
MaxRenderLevel=5
NumRenderablesLoading=50
MaxAdjacentPages=2
MaxPreloadedPages=3
ChangeFactor=1.5
CameraThreshold=5
MaxNumRenderables=256
IncrementRenderables=256
MaxNumTiles=256
IncrementTiles=256
HorizonVisibilityComputing=yes
## Camera Properties (on Terrain Load) ##
#BaseCameraViewpoint.x=0.0f
#BaseCameraViewpoint.y=0.0f
#BaseCameraViewpoint.z=0.0f
#Baselookat.x=0.0f
#Baselookat.y=0.0f
#Baselookat.z=0.0f
If you want my data files you can get them from here: http://www.uploading.com/files/6GO85JLQ/level1.zip.html
I hope I am not doing anything stupid. This same configuration was working before I updated.
This was compiled with msvc 2005 and with the sdk.