Dids
21-07-2006 20:42:24
I know this topic has been discussed oh-so-many-times, but I figured this might be worth a shot.
My problem is this; I'm simply trying to import the exact (well as "exact" as it can be) same heightmap as it is when I edit it in Freeworld and export. Freeworld ogre exporter spits out a terrain.cfg file which says this:
So can I use this directly with PLSM? I've simply tried to copy & paste parts here and there, but with no luck. Any special things that I need to configure in the .cfg file (for PLSM) ? The heightmap is raw, 2049x2049 I think, but in Freeworld (as far as I can remember) I set something so that the map would actually be 10245x10245, although it does export as 2kx2k (which makes sense, kinda). Sooo, hints, guides, anything, would be more than appreciated Might even be my MapSplitter .gen file that's causing the ruckus, since I'm bad with .raw files hehe.
Anyway, thanks, Dids out!
My problem is this; I'm simply trying to import the exact (well as "exact" as it can be) same heightmap as it is when I edit it in Freeworld and export. Freeworld ogre exporter spits out a terrain.cfg file which says this:
# Heightmap source
PageSource=Heightmap
# Heightmap-source specific settings
Heightmap.image=heightmap.raw
# RAW-specific setting - size (horizontal/vertical)
Heightmap.raw.size=2049
# RAW-specific setting - bytes per pixel (1 = 8bit, 2=16bit)
Heightmap.raw.bpp=2
# How large is a page of tiles (in vertices)? Must be (2^n)+1
PageSize=2049
# How large is each tile? Must be (2^n)+1 and be smaller than PageSize
TileSize=33
# The maximum error allowed when determining which LOD to use
MaxPixelError=3
# The size of a terrain page, in world units
PageWorldX=10245
PageWorldZ=10245
# Maximum height of the terrain
MaxHeight=92.0876
# Upper LOD limit
MaxMipMapLevel=5
# Use vertex program to morph LODs, if available
VertexProgramMorph=yes
LODMorphStart=0.2
CustomMaterialName=Terrain_Shader
So can I use this directly with PLSM? I've simply tried to copy & paste parts here and there, but with no luck. Any special things that I need to configure in the .cfg file (for PLSM) ? The heightmap is raw, 2049x2049 I think, but in Freeworld (as far as I can remember) I set something so that the map would actually be 10245x10245, although it does export as 2kx2k (which makes sense, kinda). Sooo, hints, guides, anything, would be more than appreciated Might even be my MapSplitter .gen file that's causing the ruckus, since I'm bad with .raw files hehe.
Anyway, thanks, Dids out!