Linker Error for Scene Loader Demo

limunpai

30-03-2008 06:34:22

I'm having trouble solving a linker error in the scene loader demo. My build log for this project is this:

Command Lines


Creating temporary file "c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\OgreSceneLoader\OgreSceneLoader\obj\Debug\RSP0000142282008.rsp" with contents
[
/Od /I "include" /I "C:\OgreSDK\include" /I "C:\OgreSDK\include\CEGUI" /I "C:\OgreSDK\samples\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Gy /fp:fast /Fo"obj\Debug\\" /Fd"obj\Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP ".\src\OgreSceneLoader.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\OgreSceneLoader\OgreSceneLoader\obj\Debug\RSP0000142282008.rsp" /nologo /errorReport:prompt"
Creating temporary file "c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\OgreSceneLoader\OgreSceneLoader\obj\Debug\RSP0000152282008.rsp" with contents
[
/OUT:"bin\Debug\OgreSceneLoader.exe" /INCREMENTAL /LIBPATH:"C:\OgreSDK\lib" /MANIFEST /MANIFESTFILE:"obj\Debug\OgreSceneLoader.exe.intermediate.manifest" /DEBUG /PDB:"bin\Debug/OgreSceneLoader.pdb" /SUBSYSTEM:WINDOWS /OPT:NOWIN98 /MACHINE:X86 OgreMain_d.lib OIS_d.lib CEGUIBase_d.lib OgreGUIRenderer_d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".\obj\Debug\OgreOSMScene.obj"

".\obj\Debug\OgreSceneLoader.obj"

".\obj\Debug\tinystr.obj"

".\obj\Debug\tinyxml.obj"

".\obj\Debug\tinyxmlerror.obj"

".\obj\Debug\tinyxmlparser.obj"

".\obj\Debug\OgreSceneLoader.exe.embed.manifest.res"
]
Creating command line "link.exe @"c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\OgreSceneLoader\OgreSceneLoader\obj\Debug\RSP0000152282008.rsp" /NOLOGO /ERRORREPORT:PROMPT"

Output Window


Compiling...
OgreSceneLoader.cpp
Linking...
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
bin\Debug\OgreSceneLoader.exe : fatal error LNK1120: 1 unresolved externals


I don't know what MSVCRTD.lib is, though it is obviously something from Visual Studio 2005, the compiler I am using. The computer I am compiling on is a Macbook with 32-bit Windows XP Pro running on it through bootcamp. If anyone could help me, that would be wonderful, as I've been tearing my hair out trying to set up ofusion for the past week.

limunpai

30-03-2008 19:51:59

Figured my first problem out. I wasn't including oSceneLibDemo.cpp in the project for some reason even though it appeared in the solution explorer. All I did was delete it then re-add existing item in solution explorer.

Now, however, I'm having a render command fail using Direct3D9, but not with OpenGL. Here's the ogre log:


13:48:55: Creating resource group General
13:48:55: Creating resource group Internal
13:48:55: Creating resource group Autodetect
13:48:55: SceneManagerFactory for type 'DefaultSceneManager' registered.
13:48:55: Registering ResourceManager for type Material
13:48:55: Registering ResourceManager for type Mesh
13:48:55: Registering ResourceManager for type Skeleton
13:48:55: MovableObjectFactory for type 'ParticleSystem' registered.
13:48:55: OverlayElementFactory for type Panel registered.
13:48:55: OverlayElementFactory for type BorderPanel registered.
13:48:55: OverlayElementFactory for type TextArea registered.
13:48:55: Registering ResourceManager for type Font
13:48:55: ArchiveFactory for archive type FileSystem registered.
13:48:55: ArchiveFactory for archive type Zip registered.
13:48:55: FreeImage version: 3.10.0
13:48:55: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
13:48:55: 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
13:48:55: DDS codec registering
13:48:55: Registering ResourceManager for type HighLevelGpuProgram
13:48:55: Registering ResourceManager for type Compositor
13:48:55: MovableObjectFactory for type 'Entity' registered.
13:48:55: MovableObjectFactory for type 'Light' registered.
13:48:55: MovableObjectFactory for type 'BillboardSet' registered.
13:48:55: MovableObjectFactory for type 'ManualObject' registered.
13:48:55: MovableObjectFactory for type 'BillboardChain' registered.
13:48:55: MovableObjectFactory for type 'RibbonTrail' registered.
13:48:55: Loading library .\RenderSystem_Direct3D9_d
13:48:55: Installing plugin: D3D9 RenderSystem
13:48:55: D3D9 : Direct3D9 Rendering Subsystem created.
13:48:55: D3D9: Driver Detection Starts
13:48:55: D3D9: Driver Detection Ends
13:48:55: Plugin successfully installed
13:48:55: Loading library .\RenderSystem_GL_d
13:48:55: Installing plugin: GL RenderSystem
13:48:55: OpenGL Rendering Subsystem created.
13:48:55: Plugin successfully installed
13:48:55: Loading library .\Plugin_ParticleFX_d
13:48:55: Installing plugin: ParticleFX
13:48:55: Particle Emitter Type 'Point' registered
13:48:55: Particle Emitter Type 'Box' registered
13:48:55: Particle Emitter Type 'Ellipsoid' registered
13:48:55: Particle Emitter Type 'Cylinder' registered
13:48:55: Particle Emitter Type 'Ring' registered
13:48:55: Particle Emitter Type 'HollowEllipsoid' registered
13:48:55: Particle Affector Type 'LinearForce' registered
13:48:55: Particle Affector Type 'ColourFader' registered
13:48:55: Particle Affector Type 'ColourFader2' registered
13:48:55: Particle Affector Type 'ColourImage' registered
13:48:55: Particle Affector Type 'ColourInterpolator' registered
13:48:55: Particle Affector Type 'Scaler' registered
13:48:55: Particle Affector Type 'Rotator' registered
13:48:55: Particle Affector Type 'DirectionRandomiser' registered
13:48:55: Particle Affector Type 'DeflectorPlane' registered
13:48:55: Plugin successfully installed
13:48:55: Loading library .\Plugin_BSPSceneManager_d
13:48:55: Installing plugin: BSP Scene Manager
13:48:55: Plugin successfully installed
13:48:55: Loading library .\Plugin_OctreeSceneManager_d
13:48:55: Installing plugin: Octree & Terrain Scene Manager
13:48:55: Plugin successfully installed
13:48:55: Loading library .\Plugin_CgProgramManager_d
13:48:55: Installing plugin: Cg Program Manager
13:48:55: Plugin successfully installed
13:48:55: *-*-* OGRE Initialising
13:48:55: *-*-* Version 1.4.6 (Eihort)
13:48:55: Creating resource group Bootstrap
13:48:55: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
13:48:55: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/normalMapping' of type 'FileSystem' to resource group 'General'
13:48:55: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
13:48:55: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
13:48:55: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
13:48:55: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
13:48:55: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
13:48:55: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
13:48:55: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
13:48:55: D3D9 : RenderSystem Option: Anti aliasing = None
13:48:55: D3D9 : RenderSystem Option: Floating-point mode = Fastest
13:48:55: D3D9 : RenderSystem Option: Full Screen = No
13:48:55: D3D9 : RenderSystem Option: Rendering Device = Mobile Intel(R) 945 Express Chipset Family
13:48:55: D3D9 : RenderSystem Option: VSync = No
13:48:55: D3D9 : RenderSystem Option: Video Mode = 1280 x 800 @ 32-bit colour
13:48:59: *** Stopping Win32GL Subsystem ***
13:48:59: CPU Identifier & Features
13:48:59: -------------------------
13:48:59: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
13:48:59: * SSE: yes
13:48:59: * SSE2: yes
13:48:59: * SSE3: yes
13:48:59: * MMX: yes
13:48:59: * MMXEXT: yes
13:48:59: * 3DNOW: no
13:48:59: * 3DNOWEXT: no
13:48:59: * CMOV: yes
13:48:59: * TSC: yes
13:48:59: * FPU: yes
13:48:59: * PRO: yes
13:48:59: * HT: no
13:48:59: -------------------------
13:48:59: D3D9 : Subsystem Initialising
13:48:59: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1280x800 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
13:48:59: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1272x766, 32bpp
13:48:59: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:48:59: Registering ResourceManager for type Texture
13:48:59: Registering ResourceManager for type GpuProgram
13:48:59: RenderSystem capabilities
13:48:59: -------------------------
13:48:59: * Hardware generation of mipmaps: no
13:48:59: * Texture blending: yes
13:48:59: * Anisotropic texture filtering: yes
13:48:59: * Dot product texture operation: yes
13:48:59: * Cube mapping: yes
13:48:59: * Hardware stencil buffer: yes
13:48:59: - Stencil depth: 8
13:48:59: - Two sided stencil support: yes
13:48:59: - Wrap stencil values: yes
13:48:59: * Hardware vertex / index buffers: yes
13:48:59: * Vertex programs: yes
13:48:59: - Max vertex program version: vs_3_0
13:48:59: * Fragment programs: yes
13:48:59: - Max fragment program version: ps_2_0
13:48:59: * Texture Compression: yes
13:48:59: - DXT: yes
13:48:59: - VTC: no
13:48:59: * Scissor Rectangle: yes
13:48:59: * Hardware Occlusion Query: no
13:48:59: * User clip planes: yes
13:48:59: * VET_UBYTE4 vertex element type: yes
13:48:59: * Infinite far plane projection: yes
13:48:59: * Hardware render-to-texture: yes
13:48:59: * Floating point textures: no
13:48:59: * Non-power-of-two textures: yes (limited)
13:48:59: * Volume textures: yes
13:48:59: * Multiple Render Targets: 1
13:48:59: * Point Sprites: yes
13:48:59: * Extended point parameters: yes
13:48:59: * Max Point Size: 256
13:48:59: * Vertex texture fetch: no
13:48:59: ***************************************
13:48:59: *** D3D9 : Subsystem Initialised OK ***
13:48:59: ***************************************
13:48:59: ResourceBackgroundQueue - threading disabled
13:48:59: Particle Renderer Type 'billboard' registered
13:48:59: SceneManagerFactory for type 'BspSceneManager' registered.
13:48:59: Registering ResourceManager for type BspLevel
13:48:59: SceneManagerFactory for type 'OctreeSceneManager' registered.
13:48:59: SceneManagerFactory for type 'TerrainSceneManager' registered.
13:48:59: Parsing scripts for resource group Autodetect
13:48:59: Finished parsing scripts for resource group Autodetect
13:48:59: Parsing scripts for resource group Bootstrap
13:48:59: Parsing script OgreCore.material
13:48:59: Parsing script OgreProfiler.material
13:48:59: Parsing script Ogre.fontdef
13:48:59: Parsing script OgreDebugPanel.overlay
13:48:59: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
13:48:59: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:48:59: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
13:48:59: Font BlueHighwayusing texture size 512x512
13:48:59: Info: Freetype returned null for character 127 in font BlueHighway
13:48:59: Info: Freetype returned null for character 128 in font BlueHighway
13:48:59: Info: Freetype returned null for character 129 in font BlueHighway
13:48:59: Info: Freetype returned null for character 130 in font BlueHighway
13:48:59: Info: Freetype returned null for character 131 in font BlueHighway
13:48:59: Info: Freetype returned null for character 132 in font BlueHighway
13:48:59: Info: Freetype returned null for character 133 in font BlueHighway
13:48:59: Info: Freetype returned null for character 134 in font BlueHighway
13:48:59: Info: Freetype returned null for character 135 in font BlueHighway
13:48:59: Info: Freetype returned null for character 136 in font BlueHighway
13:48:59: Info: Freetype returned null for character 137 in font BlueHighway
13:48:59: Info: Freetype returned null for character 138 in font BlueHighway
13:48:59: Info: Freetype returned null for character 139 in font BlueHighway
13:48:59: Info: Freetype returned null for character 140 in font BlueHighway
13:48:59: Info: Freetype returned null for character 141 in font BlueHighway
13:48:59: Info: Freetype returned null for character 142 in font BlueHighway
13:48:59: Info: Freetype returned null for character 143 in font BlueHighway
13:48:59: Info: Freetype returned null for character 144 in font BlueHighway
13:48:59: Info: Freetype returned null for character 145 in font BlueHighway
13:48:59: Info: Freetype returned null for character 146 in font BlueHighway
13:48:59: Info: Freetype returned null for character 147 in font BlueHighway
13:48:59: Info: Freetype returned null for character 148 in font BlueHighway
13:48:59: Info: Freetype returned null for character 149 in font BlueHighway
13:48:59: Info: Freetype returned null for character 150 in font BlueHighway
13:48:59: Info: Freetype returned null for character 151 in font BlueHighway
13:48:59: Info: Freetype returned null for character 152 in font BlueHighway
13:48:59: Info: Freetype returned null for character 153 in font BlueHighway
13:48:59: Info: Freetype returned null for character 154 in font BlueHighway
13:48:59: Info: Freetype returned null for character 155 in font BlueHighway
13:48:59: Info: Freetype returned null for character 156 in font BlueHighway
13:48:59: Info: Freetype returned null for character 157 in font BlueHighway
13:48:59: Info: Freetype returned null for character 158 in font BlueHighway
13:48:59: Info: Freetype returned null for character 159 in font BlueHighway
13:48:59: Info: Freetype returned null for character 160 in font BlueHighway
13:48:59: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
13:48:59: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
13:48:59: Parsing script OgreLoadingPanel.overlay
13:48:59: Finished parsing scripts for resource group Bootstrap
13:48:59: Parsing scripts for resource group General
13:49:00: Parsing script Examples.program
13:49:00: Parsing script StdQuad_vp.program
13:49:00: Parsing script deferred.glsl.program
13:49:00: Parsing script deferred.hlsl.program
13:49:00: Parsing script deferred_post_debug.glsl.program
13:49:00: Parsing script deferred_post_debug.hlsl.program
13:49:00: Parsing script deferred_post_minilight.glsl.program
13:49:00: Parsing script deferred_post_minilight.hlsl.program
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
13:49:00: Parsing script deferred_post_multipass.glsl.program
13:49:00: Parsing script deferred_post_multipass.hlsl.program
13:49:00: Parsing script deferred_post_onepass.glsl.program
13:49:00: Parsing script deferred_post_onepass.hlsl.program
13:49:00: Parsing script BlackAndWhite.material
13:49:00: Parsing script Bloom.material
13:49:00: Parsing script carnie.ma.material
13:49:00: Parsing script cube.prefix.material
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fixedDepthBias does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 19 of cube.prefix.material: Invalid param_named attribute - Parameter called fixedDepthBias does not exist.
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called gradientClamp does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 20 of cube.prefix.material: Invalid param_named attribute - Parameter called gradientClamp does not exist.
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called gradientScaleBias does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 21 of cube.prefix.material: Invalid param_named attribute - Parameter called gradientScaleBias does not exist.
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called fixedDepthBias does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 51 of cube.prefix.material: Invalid param_named attribute - Parameter called fixedDepthBias does not exist.
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called gradientClamp does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 52 of cube.prefix.material: Invalid param_named attribute - Parameter called gradientClamp does not exist.
13:49:00: OGRE EXCEPTION(2:InvalidParametersException): Parameter called gradientScaleBias does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
13:49:00: Error in material nx.cube.shadows at line 53 of cube.prefix.material: Invalid param_named attribute - Parameter called gradientScaleBias does not exist.
13:49:00: Parsing script DepthShadowmap.material
13:49:00: Parsing script DOF.material
13:49:00: Parsing script Embossed.material
13:49:00: Parsing script evilclown.ma.material
13:49:00: Parsing script Example.material
13:49:00: Parsing script Example-DynTex.material
13:49:00: Parsing script Examples-Advanced.material
13:49:00: Parsing script Example-Water.material
13:49:00: Parsing script facial.material
13:49:00: Parsing script Glass.material
13:49:00: Parsing script hdr.material
13:49:00: Parsing script HeatVision.material
13:49:00: Parsing script Hurt.material
13:49:00: Parsing script instancing.material
13:49:01: Parsing script Invert.material
13:49:01: Parsing script Laplace.material
13:49:01: Parsing script maincharacter.ma.material
13:49:01: Parsing script MotionBlur.material
13:49:01: Parsing script nx.sphere.material
13:49:01: Parsing script Ocean.material
13:49:01: Parsing script OffsetMapping.material
13:49:01: Parsing script Ogre.material
13:49:01: Parsing script OldMovie.material
13:49:01: Parsing script OldTV.material
13:49:01: Parsing script Posterize.material
13:49:01: Parsing script RZR-002.material
13:49:01: Parsing script SharpenEdges.material
13:49:01: Parsing script smoke.material
13:49:01: Parsing script Tiling.material
13:49:01: Parsing script VarianceShadowmap.material
13:49:01: Parsing script deferred.material
13:49:01: Parsing script deferred_post_debug.material
13:49:01: Parsing script deferred_post_minilight.material
13:49:01: Parsing script deferred_post_multipass.material
13:49:01: Parsing script deferred_post_onepass.material
13:49:01: Parsing script deferreddemo.material
13:49:01: Parsing script normalMapping.material
13:49:01: Parsing script RomanBath.material
13:49:01: Parsing script Examples.compositor
13:49:01: Parsing script sample.fontdef
13:49:01: Parsing script Example-Water.particle
13:49:01: Parsing script Example.particle
13:49:02: Parsing script emitted_emitter.particle
13:49:02: Parsing script smoke.particle
13:49:02: Parsing script Compositor.overlay
13:49:02: Parsing script DP3.overlay
13:49:02: Parsing script Example-CubeMapping.overlay
13:49:02: Parsing script Example-DynTex.overlay
13:49:02: Parsing script Example-Water.overlay
13:49:02: Parsing script Shadows.overlay
13:49:02: Finished parsing scripts for resource group General
13:49:02: Parsing scripts for resource group Internal
13:49:02: Finished parsing scripts for resource group Internal
13:49:02: ********************************
13:49:02: ** oScene Loader Lib **
13:49:02: ********************************
13:49:02: oSceneLoader: Loading 'normalMapping.osm' file
13:49:02: oSceneLoader: Creating scene on 'Root' node
13:49:02: Mesh: Loading Torus01.mesh.
13:49:02: WARNING: Torus01.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
13:49:02: Texture: rockwall_NH.tga: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
13:49:02: D3D9 : Loading Cube Texture, base image name : 'nm.dds' with 5 mip map levels
13:49:02: Texture: rockwall.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
13:49:02: ********************************
13:49:02: ** oSceneLoader: Scene loaded **
13:49:02: ********************************
13:49:02: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
13:49:02: *** Initializing OIS ***
13:49:02: OGRE EXCEPTION(3:RenderingAPIException): Failed to DrawPrimitive : Invalid call in D3D9RenderSystem::_render at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp (line 2720)
13:49:04: Unregistering ResourceManager for type BspLevel
13:49:04: *-*-* OGRE Shutdown
13:49:04: Unregistering ResourceManager for type Compositor
13:49:04: Unregistering ResourceManager for type Font
13:49:04: Unregistering ResourceManager for type Skeleton
13:49:04: Unregistering ResourceManager for type Mesh
13:49:04: Unregistering ResourceManager for type HighLevelGpuProgram
13:49:04: Uninstalling plugin: Cg Program Manager
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\Plugin_CgProgramManager_d
13:49:04: Uninstalling plugin: Octree & Terrain Scene Manager
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\Plugin_OctreeSceneManager_d
13:49:04: Uninstalling plugin: BSP Scene Manager
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\Plugin_BSPSceneManager_d
13:49:04: Uninstalling plugin: ParticleFX
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\Plugin_ParticleFX_d
13:49:04: Uninstalling plugin: GL RenderSystem
13:49:04: *** Stopping Win32GL Subsystem ***
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\RenderSystem_GL_d
13:49:04: Uninstalling plugin: D3D9 RenderSystem
13:49:04: Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
13:49:04: D3D9 : Shutting down cleanly.
13:49:04: Unregistering ResourceManager for type Texture
13:49:04: Unregistering ResourceManager for type GpuProgram
13:49:04: D3D9 : Direct3D9 Rendering Subsystem destroyed.
13:49:04: Plugin successfully uninstalled
13:49:04: Unloading library .\RenderSystem_Direct3D9_d
13:49:04: Unregistering ResourceManager for type Material


I am using the normalMapping example scene (The example brick Torus)

As you can see from the log, D3D9 is loading properly and you can see all the capabilities of my computer in regard to the render system, and it looks to me like it should be working, but it isn't. I have a feeling this is the case because I am working on a macbook with WinXP Pro loaded through bootcamp.

Lioric

01-04-2008 02:07:42

The Ogre engine needs a pure video hardware device

Im not sure how bootcamp system is made as i dont use it (or macs) but being this a virtual machine or a layer between the host OS libraries and the running application, it mostly wont provide the support needed by the Direct3D driver

Bear in mind that video hardware and its drivers are very close to each other, and even in the native platform they can (and most of the time they do) contain issues that are fixed with each driver update (that is why is important to update your drivers as the first step), if you add to this an extra layer of emulation or a layer of binding then you mostly will experience issues, specially when using more advanced features of the hardware (and that is what exactly Ogre does)

Drivers are extremely optimized to get that extra performance gain, that is why there are cases that OpenGL and Direct3D has very different support and performance even on the same machine

If bootcamp is simply a multiboot manager, and on Intel based machines the Windows system is installed and executed directly, then part of the noted above works here, video hardware drivers need to be precisely matched to the machine (and it seems there is not a Direct3D driver for macs hardware)

If you can, test your application on a true windows system, or use the OpenGL render system in your machine as that probably has most (and direct to the hardware) support than a Direct3D emulation or virtual machine