Samir
13-11-2005 15:37:31
Hi,
I have already hinted to this problem I'm having and showed some screenshots in a previous post of mine here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=157
I've been trying for a week now to solve this with no luck
Basically, some tiles are missing from my terrain when I build in the Release configuration. Here are two other screenshots of my problem.
The problem did not exist before I upgraded to the new PLSM2 (from CVS as opposed to the old one from that website which is used with the Ogre SDK).
Here is my ps_height_1k.cfg:
Again, this problem only occurs in Release builds, not in Debug builds.
Does anyone have any idea what this could be caused by?
I have already hinted to this problem I'm having and showed some screenshots in a previous post of mine here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=157
I've been trying for a week now to solve this with no luck
Basically, some tiles are missing from my terrain when I build in the Release configuration. Here are two other screenshots of my problem.
The problem did not exist before I upgraded to the new PLSM2 (from CVS as opposed to the old one from that website which is used with the Ogre SDK).
Here is my ps_height_1k.cfg:
### WARNING
## read Data2dLoader.txt, Mapsplitterreadme.txt
## in ogreaddons paginglandscape root folder before anything here.
##
# resource group name
GroupName=PLSM2
##
##
################## HeightMap OPTIONS.
#
# Before using the paginglandscape2 plugins,
# you'll have to split your big heightmap file into pages.
# Use the Mapsplitter tool for that
# Base file name for the landscape heightfield data
# The file name MUST be LandScapeFileName.x.z.LandScapeExtension (ex: landscape.0.0.png)
# and MUST be squared.
LandScapeFileName=ps_height_1k
LandScapeExtension=png
# Height and Width of the landscape in number of pages
Width=4
Height=4
#
# Size of the Heightfiled in pixels (must be (power of 2) + 1)
PageSize=257
#
# Size of the Heightfiled in pixels
TileSize=65
#
## so if map is 2048x1024, with pagesize=257 and TileSize=64
# it gives 32 pages (8 pages width, 4 pages width), each 16 tiles so it's 512 tiles on the whole map.
#
# Especialized 2D data loader.
# Currently the only available loaders are 'HeightField', 'HeightFieldTC' and 'SplineField'.
#
# 8bits, grayscale images. (png, jpg, etc) or 16 bits (raw)
Data2DFormat=HeightField
# 32bits, RGBA images. (png, jpg, etc) RGB is normal information, in alpha we store heightmap
#Data2DFormat=HeightFieldN
#
# The HeightField TC is a compresed format and need to know the value range from where the
# heightfield file was compressed
MaxValue=3000
MinValue=0
# # 8bits, grayscale images. (png, jpg, etc) or 16 bits (raw)
#Data2DFormat=HeightFieldTC
# 32bits, RGBA images. (png, jpg, etc) RGB is normal information, in alpha we store heightmap
#Data2DFormat=HeightFieldNTC
#experimental spline terrain
#Data2DFormat=SplineField
#
# Scale values
# Beware that scaling is pagesize and heighmap definition range indepedant.
ScaleX=1800
ScaleY=900
ScaleZ=1800
# if Deformation is no use for you, you can gain fps by saying no here.
Deformable=no
# experimental VRAM saves. need instant base texture and vertex shader support
# "vertex displacment mapping"
VertexCompression=yes
# Use vertex program to morph LODs, if available
VertexProgramMorph=no
# The proportional distance range at which the LOD morph starts to take effect
# This is as a proportion of the distance between the current LODs effective range,
# and the effective range of the next lower LOD
LODMorphStart=0.2
# The maximum error allowed when determining which LOD to use
MaxPixelError=15
################## LIGHTING OPTIONS.
# For lighting
# For better looking deformed texture (instantbase)
# for shader (needed to get slope)
VertexNormals=no
############### TEXTURING OPTIONS
#
TextureExtension=png
#
#
#
# Especialized texture loader.
#
#(no pregenerated maps needed)
# Real-time (no pregenerated maps needed) splatting => splatting (needs DX9) and splatting5 (need shaders)
# Real-time (no pregenerated maps needed)Coloring => basetexture.
#
#(pregenerated maps needed)
# Deformable splatting => splatting5 (need shaders)
# Deformable Coloring => instantbasetexture.
#
#(pregenerated maps only)
# splatting => splatting2, (needs DX9) splatting3 (opengl)
# Coloring => basetexture2
# Image => Image (generated by any terrain texture generator terragen, T2, etc)
#
#
#
#DX = BaseTexture, BaseTexture2, InstantBaseTexture, Splatting, Splatting2, Splatting4, Splatting6, Splatting7
#GL = BaseTexture, BaseTexture2, InstantBaseTexture, Splatting3
#Both = BaseTexture, BaseTexture2, InstantBaseTexture, Splatting5
#
TextureFormat=Image
ImageFilename=ps_texture_1k
BigImage=no
## realtime splatting
#TextureFormat=BaseTexture
## (need to generate maps with mapsplitter)
#TextureFormat=InstantBaseTexture
# Shader Splatting
# Needs pixel shader
#TextureFormat=Splatting5
#need DIRECTX
#TextureFormat=Splatting
## precalc static splatting
## (need to generate maps with mapsplitter)
#TextureFormat=BaseTexture2
#need DIRECTX
#TextureFormat=Splatting2
# Need Multitexturing Hardware DIRECTX
#TextureFormat=Splatting7
### Experimentals splatting techniques
#need DIRECTX
#TextureFormat=Splatting4
### Experimentals splatting techniques
#need OPENGL
#TextureFormat=Splatting3
#need DIRECTX
#TextureFormat=Splatting4
#²²
# For splatting3 and perhaps a pass less in splatting2 and splatting4
VertexColors=no
# For splatting3
CoverageVertexColor=no
# Forsplatting4
BaseVertexColor=no
#
BaseVertexShadow=no
#
BaseVertexInstantColor=no
#
# Splatting
# We are allowing 4 textures to build the terrain texture
# MaterialHeight to change alpha weights ( using percentages )
# for Real-time textureformat and deformable (instantbasetexture, splatting5)
MaterialHeight1=12
MaterialHeight2=60
#needs to be in Search Path directory (resources.cfg)
SplatFilename0=splatting_snow.jpg
SplatFilename1=splatting_sand.jpg
SplatFilename2=splatting_grass.jpg
SplatFilename3=splatting_rock.jpg
################## PERFORMANCES OPTIONS.
#
#
#
# Visible renderables
# This is the number of visible renderables from the current camera position
# to the border of the visible terrain. (The radius of renderables)
VisibleRenderables=80
#
# LOD : LEVEL OF DETAIL
#
# Distance LOD
# This is the number of renderables in the higher LOD.
#
DistanceLOD=5
#
# if not set, it's precomputed to the max possible at this TileSize.
# Must be (2^MaxRendervel < TileSize)
MaxRenderLevel=3
#
#
# FPS Processing limit
# number of renderables loading in a single frame (if needed)
NumRenderablesLoading=50
#
# WINDOWING AROUND CAMERA
#
# Num of adjacent loaded landscape pages.
MaxAdjacentPages=3
#
# Num of adjacent preloaded landscape pages.
# Must be bigger than MaxAdjacentPages + 1, the textures are loaded in a separate thread.
MaxPreloadedPages=4
#
#
# Pages Load Factor
# Pages will be load/unload when they are about PageSize^2 * ChangeFactor
ChangeFactor=1.5
#
#
# Camera Threshold
# If the last camera position minus current camera position is >= CameraTheshold
# then the scene is trasverse to check LOD.
CameraThreshold=5
#
# Memory Pool Initial Usage Values (pre-allocated renderables and tiles.)
# use debug mode to check your needs.
MaxNumRenderables=200
IncrementRenderables=200
MaxNumTiles=200
IncrementTiles=200
# Horizon Visibility computing:
# enable it if your map have moutains, cliff... not if it's mainly plane.
# everything hidden will not be send to GPU saving framerates.
HorizonVisibilityComputing=yes
Again, this problem only occurs in Release builds, not in Debug builds.
Does anyone have any idea what this could be caused by?