Missing parameters in ETterrain.cfg

papi87

12-01-2009 21:23:38

Hi to all, I'm brand new to Ogre. I've created a terrain using ETM and here is ETterrain.cfg it generated:

# Specify the heightmap data type and source
DataType=Image
DataSource=terrain.png

# Specify the size of the terrain
Width=513
Height=513
TileSize=513

# Scale factor for terrain rendering
ScaleX=1500
ScaleY=100
ScaleZ=1500

# Adjust LOD settings
MaxMipMapLevel=4
MaxPixelError=2
LODMorphing=no

# Specify the splatting textures to use
# You can use as many as you want (and your hardware supports)
Texture0=splatting0.png
Texture1=splatting1.png
Texture2=splatting2.png
Texture3=splatting3.png

# If you intend to load a terrain texturing done before,
# then specify the coverage maps' extension and their base name
# (excluding extension and the .## at the end)
#CoverageExtension=png
#CoverageBasename=ETterrain.Tex

# Calculate a lightmap for the terrain upon loading?
UseLightmap=yes
# From where does the light for the lightmap come?
LightDirection=1 -1 1
LightmapDetail=1

# How often should the splatting textures be tiled over the terrain?
TextureRepeatX=20
TextureRepeatZ=20


I've been trying to load it to IntermediateTutorial2, but it gives me an exception:

OGRE EXCEPTION(5:ItemIdentityException): Missing option 'PageSize' in TerrainSceneManager::loadConfig at C:\Ogre_Shoggoth\PlugIns\OctreeSceneManager\src\OgreTerrainSceneManager.cpp (line 134)

I've tried to add it manually. But it gives me similar exception about PageSource and then about Heightmap.image. I've added these to my ETTerrain.cfg from default terrain.cfg:

# How large is a page of tiles (in vertices)? Must be (2^n)+1
PageSize=129
# Heightmap source
PageSource=Heightmap
# Heightmap-source specific settings
Heightmap.image=ETterrain.png


But my program crashes. Here is my Ogre.log (but I don't think it will help):
22:02:31: Creating resource group General
22:02:31: Creating resource group Internal
22:02:31: Creating resource group Autodetect
22:02:31: SceneManagerFactory for type 'DefaultSceneManager' registered.
22:02:31: Registering ResourceManager for type Material
22:02:31: Registering ResourceManager for type Mesh
22:02:31: Registering ResourceManager for type Skeleton
22:02:31: MovableObjectFactory for type 'ParticleSystem' registered.
22:02:31: OverlayElementFactory for type Panel registered.
22:02:31: OverlayElementFactory for type BorderPanel registered.
22:02:31: OverlayElementFactory for type TextArea registered.
22:02:31: Registering ResourceManager for type Font
22:02:31: ArchiveFactory for archive type FileSystem registered.
22:02:31: ArchiveFactory for archive type Zip registered.
22:02:31: FreeImage version: 3.9.3
22:02:31: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
22:02:31: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
22:02:31: DDS codec registering
22:02:31: Registering ResourceManager for type HighLevelGpuProgram
22:02:31: Registering ResourceManager for type Compositor
22:02:31: MovableObjectFactory for type 'Entity' registered.
22:02:31: MovableObjectFactory for type 'Light' registered.
22:02:31: MovableObjectFactory for type 'BillboardSet' registered.
22:02:31: MovableObjectFactory for type 'ManualObject' registered.
22:02:31: MovableObjectFactory for type 'BillboardChain' registered.
22:02:31: MovableObjectFactory for type 'RibbonTrail' registered.
22:02:31: Loading library .\RenderSystem_Direct3D9
22:02:31: Installing plugin: D3D9 RenderSystem
22:02:31: D3D9 : Direct3D9 Rendering Subsystem created.
22:02:31: D3D9: Driver Detection Starts
22:02:31: D3D9: Driver Detection Ends
22:02:31: Plugin successfully installed
22:02:31: Loading library .\RenderSystem_GL
22:02:31: Installing plugin: GL RenderSystem
22:02:31: OpenGL Rendering Subsystem created.
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_ParticleFX
22:02:32: Installing plugin: ParticleFX
22:02:32: Particle Emitter Type 'Point' registered
22:02:32: Particle Emitter Type 'Box' registered
22:02:32: Particle Emitter Type 'Ellipsoid' registered
22:02:32: Particle Emitter Type 'Cylinder' registered
22:02:32: Particle Emitter Type 'Ring' registered
22:02:32: Particle Emitter Type 'HollowEllipsoid' registered
22:02:32: Particle Affector Type 'LinearForce' registered
22:02:32: Particle Affector Type 'ColourFader' registered
22:02:32: Particle Affector Type 'ColourFader2' registered
22:02:32: Particle Affector Type 'ColourImage' registered
22:02:32: Particle Affector Type 'ColourInterpolator' registered
22:02:32: Particle Affector Type 'Scaler' registered
22:02:32: Particle Affector Type 'Rotator' registered
22:02:32: Particle Affector Type 'DirectionRandomiser' registered
22:02:32: Particle Affector Type 'DeflectorPlane' registered
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_BSPSceneManager
22:02:32: Installing plugin: BSP Scene Manager
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_CgProgramManager
22:02:32: Installing plugin: Cg Program Manager
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_PCZSceneManager.dll
22:02:32: Installing plugin: Portal Connected Zone Scene Manager
22:02:32: PCZone Factory Type 'ZoneType_Default' registered
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_OctreeZone.dll
22:02:32: Installing plugin: Octree Zone Factory
22:02:32: Plugin successfully installed
22:02:32: Loading library .\Plugin_OctreeSceneManager.dll
22:02:32: Installing plugin: Octree & Terrain Scene Manager
22:02:32: Plugin successfully installed
22:02:32: *-*-* OGRE Initialising
22:02:32: *-*-* Version 1.6.0 (Shoggoth)
22:02:32: Creating resource group Bootstrap
22:02:32: Added resource location '../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
22:02:32: Creating resource group ET
22:02:32: Added resource location '../../media/ET' of type 'FileSystem' to resource group 'ET'
22:02:32: Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/fonts' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/models' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/overlays' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/particle' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/gui' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
22:02:32: Added resource location '../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
22:02:32: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
22:02:32: D3D9 : RenderSystem Option: Anti aliasing = None
22:02:32: D3D9 : RenderSystem Option: Floating-point mode = Fastest
22:02:32: D3D9 : RenderSystem Option: Full Screen = No
22:02:32: D3D9 : RenderSystem Option: Rendering Device = RADEON 9600 SERIES
22:02:32: D3D9 : RenderSystem Option: VSync = No
22:02:32: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
22:02:32: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
22:02:33: CPU Identifier & Features
22:02:33: -------------------------
22:02:33: * CPU ID: GenuineIntel: Intel(R) Pentium(R) 4 CPU 3.00GHz
22:02:33: * SSE: yes
22:02:33: * SSE2: yes
22:02:33: * SSE3: yes
22:02:33: * MMX: yes
22:02:33: * MMXEXT: yes
22:02:33: * 3DNOW: no
22:02:33: * 3DNOWEXT: no
22:02:33: * CMOV: yes
22:02:33: * TSC: yes
22:02:33: * FPU: yes
22:02:33: * PRO: yes
22:02:33: * HT: yes
22:02:33: -------------------------
22:02:33: D3D9 : Subsystem Initialising
22:02:33: D3D9RenderSystem::_createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
22:02:33: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
22:02:33: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
22:02:33: Registering ResourceManager for type Texture
22:02:33: Registering ResourceManager for type GpuProgram
22:02:33: RenderSystem capabilities
22:02:33: -------------------------
22:02:33: RenderSystem Name: Direct3D9 Rendering Subsystem
22:02:33: GPU Vendor: ati
22:02:33: Device Name: RADEON 9600 SERIES
22:02:33: Driver Version: 6.14.10.6444
22:02:33: * Fixed function pipeline: yes
22:02:33: * Hardware generation of mipmaps: yes
22:02:33: * Texture blending: yes
22:02:33: * Anisotropic texture filtering: yes
22:02:33: * Dot product texture operation: yes
22:02:33: * Cube mapping: yes
22:02:33: * Hardware stencil buffer: yes
22:02:33: - Stencil depth: 8
22:02:33: - Two sided stencil support: yes
22:02:33: - Wrap stencil values: yes
22:02:33: * Hardware vertex / index buffers: yes
22:02:33: * Vertex programs: yes
22:02:33: * Fragment programs: yes
22:02:33: * Geometry programs: no
22:02:33: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 vs_1_1 vs_2_0
22:02:33: * Texture Compression: yes
22:02:33: - DXT: yes
22:02:33: - VTC: no
22:02:33: * Scissor Rectangle: yes
22:02:33: * Hardware Occlusion Query: yes
22:02:33: * User clip planes: yes
22:02:33: * VET_UBYTE4 vertex element type: yes
22:02:33: * Infinite far plane projection: yes
22:02:33: * Hardware render-to-texture: yes
22:02:33: * Floating point textures: yes
22:02:33: * Non-power-of-two textures: yes (limited)
22:02:33: * Volume textures: yes
22:02:33: * Multiple Render Targets: 4
22:02:33: - With different bit depths: no
22:02:33: * Point Sprites: yes
22:02:33: * Extended point parameters: yes
22:02:33: * Max Point Size: 256
22:02:33: * Vertex texture fetch: no
22:02:33: * Render to Vertex Buffer : no
22:02:33: * DirectX per stage constants: no
22:02:33: ***************************************
22:02:33: *** D3D9 : Subsystem Initialised OK ***
22:02:33: ***************************************
22:02:33: ResourceBackgroundQueue - threading disabled
22:02:33: Particle Renderer Type 'billboard' registered
22:02:33: SceneManagerFactory for type 'BspSceneManager' registered.
22:02:33: Registering ResourceManager for type BspLevel
22:02:33: SceneManagerFactory for type 'PCZSceneManager' registered.
22:02:33: MovableObjectFactory for type 'PCZLight' registered.
22:02:33: PCZone Factory Type 'ZoneType_Octree' registered
22:02:33: PCZone Factory Type 'ZoneType_Terrain' registered
22:02:33: SceneManagerFactory for type 'OctreeSceneManager' registered.
22:02:33: SceneManagerFactory for type 'TerrainSceneManager' registered.
22:02:33: TerrainSceneManager: Registered a new PageSource for type Heightmap
22:02:33: Parsing scripts for resource group Autodetect
22:02:33: Finished parsing scripts for resource group Autodetect
22:02:33: Parsing scripts for resource group Bootstrap
22:02:33: Parsing script OgreCore.material
22:02:33: Parsing script OgreProfiler.material
22:02:33: Parsing script Ogre.fontdef
22:02:33: Parsing script OgreDebugPanel.overlay
22:02:33: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
22:02:33: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
22:02:33: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
22:02:33: Font BlueHighwayusing texture size 512x512
22:02:33: Info: Freetype returned null for character 127 in font BlueHighway
22:02:33: Info: Freetype returned null for character 128 in font BlueHighway
22:02:33: Info: Freetype returned null for character 129 in font BlueHighway
22:02:33: Info: Freetype returned null for character 130 in font BlueHighway
22:02:33: Info: Freetype returned null for character 131 in font BlueHighway
22:02:33: Info: Freetype returned null for character 132 in font BlueHighway
22:02:33: Info: Freetype returned null for character 133 in font BlueHighway
22:02:33: Info: Freetype returned null for character 134 in font BlueHighway
22:02:33: Info: Freetype returned null for character 135 in font BlueHighway
22:02:33: Info: Freetype returned null for character 136 in font BlueHighway
22:02:33: Info: Freetype returned null for character 137 in font BlueHighway
22:02:33: Info: Freetype returned null for character 138 in font BlueHighway
22:02:33: Info: Freetype returned null for character 139 in font BlueHighway
22:02:33: Info: Freetype returned null for character 140 in font BlueHighway
22:02:33: Info: Freetype returned null for character 141 in font BlueHighway
22:02:33: Info: Freetype returned null for character 142 in font BlueHighway
22:02:33: Info: Freetype returned null for character 143 in font BlueHighway
22:02:33: Info: Freetype returned null for character 144 in font BlueHighway
22:02:33: Info: Freetype returned null for character 145 in font BlueHighway
22:02:33: Info: Freetype returned null for character 146 in font BlueHighway
22:02:33: Info: Freetype returned null for character 147 in font BlueHighway
22:02:33: Info: Freetype returned null for character 148 in font BlueHighway
22:02:33: Info: Freetype returned null for character 149 in font BlueHighway
22:02:33: Info: Freetype returned null for character 150 in font BlueHighway
22:02:33: Info: Freetype returned null for character 151 in font BlueHighway
22:02:33: Info: Freetype returned null for character 152 in font BlueHighway
22:02:33: Info: Freetype returned null for character 153 in font BlueHighway
22:02:33: Info: Freetype returned null for character 154 in font BlueHighway
22:02:33: Info: Freetype returned null for character 155 in font BlueHighway
22:02:33: Info: Freetype returned null for character 156 in font BlueHighway
22:02:33: Info: Freetype returned null for character 157 in font BlueHighway
22:02:33: Info: Freetype returned null for character 158 in font BlueHighway
22:02:33: Info: Freetype returned null for character 159 in font BlueHighway
22:02:33: Info: Freetype returned null for character 160 in font BlueHighway
22:02:33: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
22:02:33: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
22:02:33: Parsing script OgreLoadingPanel.overlay
22:02:33: Finished parsing scripts for resource group Bootstrap
22:02:33: Parsing scripts for resource group ET
22:02:33: Parsing script ETShader.program
22:02:33: Parsing script ETTerrain.material
22:02:33: Finished parsing scripts for resource group ET
22:02:33: Parsing scripts for resource group General
22:02:33: Parsing script Examples.program
22:02:33: Parsing script StdQuad_vp.program
22:02:33: Parsing script deferred.glsl.program
22:02:33: Parsing script deferred.hlsl.program
22:02:33: Parsing script deferred.program
22:02:33: Parsing script deferred_post_ambient.program
22:02:33: Parsing script deferred_post_debug.glsl.program
22:02:33: Parsing script deferred_post_debug.hlsl.program
22:02:33: Parsing script deferred_post_debug.program
22:02:33: Parsing script deferred_post_minilight.glsl.program
22:02:33: Parsing script deferred_post_minilight.hlsl.program
22:02:33: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightFalloff does not exist. in GpuProgramParameters::_findNamedConstantDefinition at C:\Ogre_Shoggoth\OgreMain\src\OgreGpuProgram.cpp (line 1097)
22:02:33: Compiler error: invalid parameters in deferred_post_minilight.hlsl.program(27): setting of constant failed
22:02:33: Parsing script deferred_post_minilight.program
22:02:33: Parsing script deferred_post_multipass.glsl.program
22:02:33: Parsing script deferred_post_multipass.hlsl.program
22:02:33: Parsing script deferred_post_onepass.glsl.program
22:02:33: Parsing script deferred_post_onepass.hlsl.program
22:02:33: Parsing script deferred_post_vs.program
22:02:33: Parsing script ETShader.program
22:02:33: Parsing script ASCII.material
22:02:33: Parsing script ASMSwizzle.material
22:02:33: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
22:02:33: Parsing script BlackAndWhite.material
22:02:33: Parsing script Bloom.material
22:02:33: Parsing script Bloom2.material
22:02:33: Parsing script CGSwizzle.material
22:02:33: Parsing script DepthShadowmap.material
22:02:33: Parsing script Dither.material
22:02:33: Parsing script DOF.material
22:02:33: Parsing script Embossed.material
22:02:33: Parsing script Example-DynTex.material
22:02:33: Parsing script Example-Water.material
22:02:33: Parsing script Example.material
22:02:34: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at C:\Ogre_Shoggoth\OgreMain\src\OgreGpuProgram.cpp (line 1097)
22:02:34: Compiler error: invalid parameters in Example.material(762): setting of constant failed
22:02:34: Parsing script Examples-Advanced.material
22:02:34: Parsing script facial.material
22:02:34: Parsing script Glass.material
22:02:34: Parsing script GLSLSwizzle.material
22:02:34: Parsing script Halftone.material
22:02:34: Parsing script hdr.material
22:02:34: Parsing script HeatVision.material
22:02:34: Parsing script Hurt.material
22:02:34: Parsing script instancing.material
22:02:34: Parsing script Invert.material
22:02:34: Parsing script IsoSurf.material
22:02:34: Parsing script Laplace.material
22:02:34: Parsing script MotionBlur.material
22:02:34: Parsing script MRTtest.material
22:02:34: Parsing script NightVision.material
22:02:34: Parsing script Ocean.material
22:02:34: Parsing script OffsetMapping.material
22:02:34: Parsing script Ogre.material
22:02:34: Parsing script OldMovie.material
22:02:34: Parsing script OldTV.material
22:02:34: Parsing script ParticleGS.material
22:02:34: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at C:\Ogre_Shoggoth\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 66)
22:02:34: Parsing script Posterize.material
22:02:34: Parsing script pssm.material
22:02:34: Parsing script RadialBlur.material
22:02:34: Parsing script RZR-002.material
22:02:34: Parsing script SharpenEdges.material
22:02:34: Parsing script smoke.material
22:02:35: Parsing script Tiling.material
22:02:35: Parsing script VarianceShadowmap.material
22:02:35: Parsing script deferred.material
22:02:35: Parsing script deferreddemo.material
22:02:35: Parsing script deferred_post_ambient.material
22:02:35: Parsing script deferred_post_debug.material
22:02:35: Parsing script deferred_post_minilight.material
22:02:35: Parsing script deferred_post_multipass.material
22:02:35: Parsing script deferred_post_onepass.material
22:02:35: Parsing script ETTerrain.material
22:02:35: Parsing script ROOM.material
22:02:35: Parsing script RomanBath.material
22:02:35: Parsing script emitted_emitter.particle
22:02:35: Parsing script Example-Water.particle
22:02:35: Parsing script Example.particle
22:02:35: Parsing script smoke.particle
22:02:35: Parsing script Examples.compositor
22:02:35: Parsing script deferred.compositor
22:02:35: Parsing script sample.fontdef
22:02:35: Parsing script Compositor.overlay
22:02:35: Parsing script DP3.overlay
22:02:35: Parsing script Example-CubeMapping.overlay
22:02:35: Parsing script Example-DynTex.overlay
22:02:35: Parsing script Example-Water.overlay
22:02:35: Parsing script Shadows.overlay
22:02:35: Finished parsing scripts for resource group General
22:02:35: Parsing scripts for resource group Internal
22:02:35: Finished parsing scripts for resource group Internal
22:02:35: Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
22:02:35: TerrainSceneManager: Activated PageSource Heightmap

I think the reason is somewhere else. Here is a call stack:
#0 6A2D55BF ZN4Ogre17TerrainRenderable10initialiseEiiPf() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#1 6A2CF4A0 ZN4Ogre17TerrainPageSource9buildPageEPfRKNS_11MaterialPtrE() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#2 6A2C1651 ZN4Ogre26HeightmapTerrainPageSource11requestPageEtt() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#3 6A2DF2C0 ZN4Ogre19TerrainSceneManager17setupTerrainPagesEv() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#4 6A2DF68F ZN4Ogre19TerrainSceneManager16setWorldGeometryERNS_9SharedPtrINS_10DataStreamEEERKSs() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#5 6A2D7003 ZN4Ogre19TerrainSceneManager16setWorldGeometryERKSs() (C:\OgreSDK\bin\release\Plugin_OctreeSceneManager.dll:??)
#6 0041F1C3 ??() (??:??)
#7 00A64050 ??() (??:??)
#8 0022FCE0 ??() (??:??)
#9 0022FCC0 ??() (??:??)
#10 40A00000 ??() (??:??)
#11 41000000 ??() (??:??)
#12 457A0000 ??() (??:??)
#13 00000005 ??() (??:??)
#14 6554A290 ZN4Ogre4Pass15msDirtyHashListE() (C:\OgreSDK\bin\Release\OgreMain.dll:??)
#15 00000010 ??() (??:??)
#16 00000010 ??() (??:??)
#17 FFFFFFFF ??() (??:??)
#18 6554CC8C ZN4Ogre20ResourceGroupManager28INTERNAL_RESOURCE_GROUP_NAMEE() (C:\OgreSDK\bin\Release\OgreMain.dll:??)
#19 0022FAB4 ??() (??:??)
#20 654BA7CD ZThn8_NK4Ogre14ParticleSystem17getBoundingRadiusEv() (C:\OgreSDK\bin\Release\OgreMain.dll:??)
#21 0022FFE0 ??() (??:??)
#22 77C23EB0 msvcrt!_except_handler2() (C:\WINDOWS\system32\msvcrt.dll:??)
#23 004178BD ??() (??:??)
#24 0022FEB0 ??() (??:??)
#25 00000005 ??() (??:??)
#26 0022FDD0 ??() (??:??)
#27 0022FDC0 ??() (??:??)
#28 004597A8 ??() (??:??)
#29 0000000D ??() (??:??)


I would post my code, but I don't think that's necessary - I've only changed "terrain.cfg" to "ETterrain.cfg".
Sorry if it's a noob question, but I really don't know what to do... I've tried so many things, googled a lot but found nothing... and I need this working on Friday :|

CABAListic

12-01-2009 21:32:30

That config file is an artifact of an earlier ETSM version. ETM as of now does not create any config files and does not support loading them. More specifically, the config file is incompatible with the format of Ogre's Terrain scene manager, so loading it in that way won't work. You will need to create your own terrain.cfg file if you want to use the terrain with Ogre's Terrain scene manager; or you need to load the terrain manually with ETM.

papi87

12-01-2009 22:02:12

Thanks for your quick answer. I guess I got it all wrong: I thought I can use ETM to design some terrains and then load them into any Ogre program. I need quite a lot of these terrains, so creating terrain.cfg and textures for each of them will be too time consuming, I guess.

EDIT: I've also tried to copy loadTerrain() from Demo_ETM to load this terrain and adding ETM library to the project, but it crashes. Does it make sense to do it this way?