I've come back to C++ coding and Ogre after a while, and since I never worked with Ogre's terrain component, I decided to do the BasicTutorial 3. I had set up my environment and worked my way through the tutorial until the "Compile and Run - part 1" section. I copied the terrain.png + *.dds textures from the OgreSDK as advised in the tutorial, prepared plugins_d.cfg and resources_d.cfg and hit run.
Then, Ogre gave me the following error:
Code: Select all
Assertion failed: mDepth == 1, file ..\..\..\..\..\OgreMain\src\OgreImage.cpp, line 570
My working environment:
* Acer TravelMate 8481TG laptop; Intel Core i7 2637M; 4GB DDR3 RAM
* nVidia GeForce GT 520M
* Windows 7 64-bit
* Latest official MinGW (Installed today using Mingw-get installer v0.5-beta-20120426-1; but I don't know where to get MinGW version info )
* Code::Blocks 10.05
* OGRE 1.8.0 SDK for MinGW (the latest SDK 1.8.1 is broken, boost libs are missing)
Here's the console output (Ogre.log didn't show the assertion error):
Code: Select all
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.3
This program uses FreeImage, a free, open source image library supporting all co
mmon bitmap formats. See http://freeimage.sourceforge.net for details
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,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2
,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,
pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library RenderSystem_Direct3D9_d
Installing plugin: D3D9 RenderSystem
D3D9 : Direct3D9 Rendering Subsystem created.
D3D9: Driver Detection Starts
D3D9: Driver Detection Ends
Plugin successfully installed
Loading library RenderSystem_GL_d
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library Plugin_OctreeSceneManager_d
Installing plugin: Octree Scene Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.8.0 (Byatis)
Creating resource group
Added resource location '.' of type 'FileSystem' to resource group ''
D3D9 : RenderSystem Option: Allow NVPerfHUD = No
D3D9 : RenderSystem Option: FSAA = 0
D3D9 : RenderSystem Option: Fixed Pipeline Enabled = Yes
D3D9 : RenderSystem Option: Floating-point mode = Fastest
D3D9 : RenderSystem Option: Full Screen = No
D3D9 : RenderSystem Option: Multi device memory hint = Use minimum system memory
D3D9 : RenderSystem Option: Rendering Device = Monitor-1-Intel(R) HD Graphics Fa
mily
D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
D3D9 : RenderSystem Option: Use Multihead = Auto
D3D9 : RenderSystem Option: VSync = No
D3D9 : RenderSystem Option: VSync Interval = 1
D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
CPU Identifier & Features
-------------------------
* CPU ID: GenuineIntel: Intel(R) Core(TM) i7-2637M CPU @ 1.70GHz
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: no
* 3DNOWEXT: no
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
D3D9 : Subsystem Initialising
Registering ResourceManager for type Texture
Registering ResourceManager for type GpuProgram
D3D9RenderSystem::_createRenderWindow "TutorialApplication Render Window", 1024x
768 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorInd
ex=0 useNVPerfHUD=false vsync=false vsyncInterval=1
D3D9 : Created D3D9 Rendering Window 'TutorialApplication Render Window' : 1024x
768, 32bpp
D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at low
er frame rates, turn VSync on if you observe this problem.
D3D9: Vertex texture format supported - PF_L8
D3D9: Vertex texture format supported - PF_L16
D3D9: Vertex texture format supported - PF_A8
D3D9: Vertex texture format supported - PF_A4L4
D3D9: Vertex texture format supported - PF_BYTE_LA
D3D9: Vertex texture format supported - PF_R5G6B5
D3D9: Vertex texture format supported - PF_B5G6R5
D3D9: Vertex texture format supported - PF_A4R4G4B4
D3D9: Vertex texture format supported - PF_A1R5G5B5
D3D9: Vertex texture format supported - PF_A8R8G8B8
D3D9: Vertex texture format supported - PF_B8G8R8A8
D3D9: Vertex texture format supported - PF_A2R10G10B10
D3D9: Vertex texture format supported - PF_A2B10G10R10
D3D9: Vertex texture format supported - PF_DXT1
D3D9: Vertex texture format supported - PF_DXT2
D3D9: Vertex texture format supported - PF_DXT3
D3D9: Vertex texture format supported - PF_DXT4
D3D9: Vertex texture format supported - PF_DXT5
D3D9: Vertex texture format supported - PF_FLOAT16_RGB
D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
D3D9: Vertex texture format supported - PF_FLOAT32_RGB
D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
D3D9: Vertex texture format supported - PF_X8R8G8B8
D3D9: Vertex texture format supported - PF_R8G8B8A8
D3D9: Vertex texture format supported - PF_DEPTH
D3D9: Vertex texture format supported - PF_SHORT_RGBA
D3D9: Vertex texture format supported - PF_FLOAT16_R
D3D9: Vertex texture format supported - PF_FLOAT32_R
D3D9: Vertex texture format supported - PF_SHORT_GR
D3D9: Vertex texture format supported - PF_FLOAT16_GR
D3D9: Vertex texture format supported - PF_FLOAT32_GR
D3D9: Vertex texture format supported - PF_SHORT_RGB
D3D9: Vertex texture format supported - PF_PVRTC_RGB2
D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
D3D9: Vertex texture format supported - PF_PVRTC_RGB4
D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
D3D9: Vertex texture format supported - PF_R8
D3D9: Vertex texture format supported - PF_RG8
RenderSystem capabilities
-------------------------
RenderSystem Name: Direct3D9 Rendering Subsystem
GPU Vendor: intel
Device Name: Monitor-1-Intel(R) HD Graphics Family
Driver Version: 9.18.13.623
* Fixed function pipeline: yes
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: yes
- Stencil depth: 8
- Two sided stencil support: yes
- Wrap stencil values: yes
* Hardware vertex / index buffers: yes
* Vertex programs: yes
* Number of floating-point constants for vertex programs: 256
* Number of integer constants for vertex programs: 16
* Number of boolean constants for vertex programs: 16
* Fragment programs: yes
* Number of floating-point constants for fragment programs: 224
* Number of integer constants for fragment programs: 16
* Number of boolean constants for fragment programs: 16
* Geometry programs: no
* Number of floating-point constants for geometry programs: 5336
* Number of integer constants for geometry programs: 38604
* Number of boolean constants for geometry programs: 5336
* Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_
2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
* Texture Compression: yes
- DXT: yes
- VTC: no
- PVRTC: no
* Scissor Rectangle: yes
* Hardware Occlusion Query: yes
* User clip planes: yes
* VET_UBYTE4 vertex element type: yes
* Infinite far plane projection: yes
* Hardware render-to-texture: yes
* Floating point textures: yes
* Non-power-of-two textures: yes
* Volume textures: yes
* Multiple Render Targets: 4
- With different bit depths: yes
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 256
* Vertex texture fetch: yes
* Number of world matrices: 0
* Number of texture units: 8
* Stencil buffer depth: 8
* Number of vertex blend matrices: 0
- Max vertex textures: 4
- Vertex textures shared: no
* Render to Vertex Buffer : no
* DirectX per stage constants: yes
***************************************
*** D3D9 : Subsystem Initialised OK ***
***************************************
DefaultWorkQueue('Root') initialising on thread 0x6f3968.
Particle Renderer Type 'billboard' registered
DefaultWorkQueue('Root')::WorkerFunc - thread 0x78a0d0 starting.
SceneManagerFactory for type 'OctreeSceneManager' registered.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x78a040 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x78a0a0 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 0x78a070 starting.
Parsing scripts for resource group
Finished parsing scripts for resource group
Creating resources for group
All done
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Creating resources for group Autodetect
All done
Parsing scripts for resource group General
Finished parsing scripts for resource group General
Creating resources for group General
All done
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Creating resources for group Internal
All done
Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLo
ds=2
Assertion failed: mDepth == 1, file ..\..\..\..\..\OgreMain\src\OgreImage.cpp, l
ine 570
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Process returned 3 (0x3) execution time : 3.719 s
Press any key to continue.
EDIT: Fixed incorrect SDK version (I thought I was usint the latest, but I wasn't)