Modifying the OgreODE Demos

RomanoDacis

06-07-2009 19:16:23

Hello, I am currently working on creating something similar to one of the demo applications provided, specifically OgreOde_Demo_LandScape. I go to OgreOde\demos\Landscape directory but when I open the .vcproj using Microsoft Visual Studio 2005 I see an empty project (no source or header files).

I've tried to build from OgreOde\demos\Landscape\scripts\VC8 using the Demo_Landscape_SDK.vcproj file but when I do I get a fatal error telling me OgreNoMemoryMacros.h does not exist.

My questions are:
1) Do I access the source files and edit the demos through the scripts\VC8 folder?
2) If so, what do I do about OgreNoMemoryMacros.h? I did find the source file online, but where do I save it?

Any help is greatly appreciated.

RomanoDacis

07-07-2009 21:44:37

Nevermind, I figured that one out.
My new question is actually involving a link error.
I've commented out the old "OgreNoMemoryMacros.h" and other lines like that but now I am getting an error:
"Fatal error LNK1181: cannot open input file 'ode.lib'"
I looked in my ODE folder (ode-0.11.1) and to my surprise there is no ode.lib file at all. How can I find or make the ode.lib file? I downloaded my version off the sourceforge website.

How do I get ode.lib?

RomanoDacis

08-07-2009 18:54:23

STATUS UPDATE: I fully compiled ODE 0.9 and also OgreODE (the latest version). When I try to run the demo excecutables however it tells me that I am missing .dll files (ode.dll, when I fixed that it asked me about d3dx9_38.dll etc.)

Is the problem that I am using Ogre 1.6.2?

dermont

09-07-2009 04:20:56


"Fatal error LNK1181: cannot open input file 'ode.lib'"
I looked in my ODE folder (ode-0.11.1) and to my surprise there is no ode.lib file at all. How can I find or make the ode.lib file? I downloaded my version off the sourceforge website.

You should be linking against ode_single.lib ( or ode_double on a 64bit machine?)


STATUS UPDATE: I fully compiled ODE 0.9 and also OgreODE (the latest version). When I try to run the demo excecutables however it tells me that I am missing .dll files (ode.dll, when I fixed that it asked me about d3dx9_38.dll etc.)


If you are using the OGRE SDK then you probably need to install the DirectX end-user redistributable, check the wiki for details.
http://www.ogre3d.org/wiki/index.php/In ... al_C%2B%2B

RomanoDacis

09-07-2009 15:15:56

Ok, I fixed the DLL errors by reinstalling DirectX and moving ode.lib (which I built using the ODE 0.9 package) into my release folder. The demo applications start out alright, I get to the ogre screen where it lets me choose my rendering style, anti-aliasing etc. but when I click "OK" the screen goes black, flickers a little, and then returns as though it crashed. I never see the renderable scene. Here are the last lines of my Ogre.log:
10:18:25: * DirectX per stage constants: yes
10:18:25: ***************************************
10:18:25: *** D3D9 : Subsystem Initialised OK ***
10:18:25: ***************************************
10:18:25: ResourceBackgroundQueue - threading disabled
10:18:25: Particle Renderer Type 'billboard' registered
10:18:25: SceneManagerFactory for type 'BspSceneManager' registered.
10:18:25: Registering ResourceManager for type BspLevel
10:18:25: SceneManagerFactory for type 'PCZSceneManager' registered.
10:18:25: MovableObjectFactory for type 'PCZLight' registered.
10:18:25: PCZone Factory Type 'ZoneType_Octree' registered
10:18:25: PCZone Factory Type 'ZoneType_Terrain' registered
10:18:25: SceneManagerFactory for type 'OctreeSceneManager' registered.
10:18:25: SceneManagerFactory for type 'TerrainSceneManager' registered.


I'm not sure what is going wrong. I followed the instructions here on how to install OgreODE:
http://www.ogre3d.org/wiki/index.php/Compile_OgreOde
However, instead of using an if statement at the "visitRenderables" line I simply commented it out.

I have some suspicions as to what is causing my program to terminate prematurely:
1) Could this be caused by me using OGRE 1.6.2 Shoggoth?
2) Am I missing some specific media or material files that I should place in my OgreSDK\media folder? I am running my program from the OgreSDK\bin\release folder. I will try to take all the media files from the OgreODE demo folder and place them in my OgreSDK\media folder and see where that goes.

Thank you for your reply Dermont. When I built with ODE 1.11.0 I got the lib file ode_doubled.lib. I assume this is because I was building in debug mode and because I forgot to change a setting from 64-bit to 32-bit. How do I change the setting? Do I change the premake4 setting to use 16-bit indices instead of 32-bit?

EDIT: Placing the OgreODE demo media files in OgreSDK\media and also in OgreSDK\bin\release has no noticeable effect.

EDIT2: I tried it with ODE 0.11.1 linking to ode_single.lib and doing the appropriate change in OgreOdeGeometry.h as specified here: http://www.ogre3d.org/wiki/index.php/Compile_OgreOde
Still no success. The ogre.log file stays the same.

I really am open to any suggestions right now.

dermont

09-07-2009 17:33:44

a) You shouldn't need to make the changes to OgreOdeGeometry.h if you are building against the latest version of OgreOde:
https://ogre.svn.sourceforge.net/svnroo ... nk/ogreode

b) Do not comment out or apply the changes in the wiki to visitRenderables.

c) I'm assuming that if you've built the ReleaseDLL etc that the OgreOde_*.dll's and ode_single.dll are in your bin/release directory.

d) You may also need to update your resources.cfg file to point to the OgreOde media, but from your log it isn't even getting that far, e.g:

[OgreOde]
FileSystem=I:/OgreOdeBuild/OgreOde/demos/Media

RomanoDacis

09-07-2009 19:53:38

dermont, you've been a great help.
I downloaded what I think was the most recent version of ogreode. I don't know how to download from the specific link you gave me but I did get a tardball from that site a few days ago called ogreode.tar.gz

Using this file I re-compiled ogreODE, removed my comment markers from visitRenderables, added "FileSystem=../../media/OgreOde" to resources.cfg and GranTurismo gets significantly further this time. The screen goes black, then I hear the typical Windows deep "boom" sound when it encounters an error, and the screen remains black with the white cursor visible. I press esc, get an error message telling me "Runtime error" and that it has been asked to terminate in an unusual way. Then it quits.

My ogre.log file now ends like this:
15:03:49: ***************************************
15:03:49: *** D3D9 : Subsystem Initialised OK ***
15:03:49: ***************************************
15:03:49: ResourceBackgroundQueue - threading disabled
15:03:49: Particle Renderer Type 'billboard' registered
15:03:49: SceneManagerFactory for type 'BspSceneManager' registered.
15:03:49: Registering ResourceManager for type BspLevel
15:03:49: SceneManagerFactory for type 'PCZSceneManager' registered.
15:03:49: MovableObjectFactory for type 'PCZLight' registered.
15:03:49: PCZone Factory Type 'ZoneType_Octree' registered
15:03:49: PCZone Factory Type 'ZoneType_Terrain' registered
15:03:49: SceneManagerFactory for type 'OctreeSceneManager' registered.
15:03:49: SceneManagerFactory for type 'TerrainSceneManager' registered.
15:03:49: Parsing scripts for resource group Autodetect
15:03:49: Finished parsing scripts for resource group Autodetect
15:03:49: Parsing scripts for resource group Bootstrap
15:03:49: Parsing script OgreCore.material
15:03:49: Parsing script OgreProfiler.material
15:03:49: Parsing script Ogre.fontdef
15:03:49: Parsing script OgreDebugPanel.overlay
15:03:49: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
15:03:49: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
15:03:49: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
15:03:49: Font BlueHighwayusing texture size 512x512
15:03:49: Info: Freetype returned null for character 127 in font BlueHighway
15:03:49: Info: Freetype returned null for character 128 in font BlueHighway
15:03:49: Info: Freetype returned null for character 129 in font BlueHighway
15:03:49: Info: Freetype returned null for character 130 in font BlueHighway
15:03:49: Info: Freetype returned null for character 131 in font BlueHighway
15:03:49: Info: Freetype returned null for character 132 in font BlueHighway
15:03:49: Info: Freetype returned null for character 133 in font BlueHighway
15:03:49: Info: Freetype returned null for character 134 in font BlueHighway
15:03:49: Info: Freetype returned null for character 135 in font BlueHighway
15:03:49: Info: Freetype returned null for character 136 in font BlueHighway
15:03:49: Info: Freetype returned null for character 137 in font BlueHighway
15:03:49: Info: Freetype returned null for character 138 in font BlueHighway
15:03:49: Info: Freetype returned null for character 139 in font BlueHighway
15:03:49: Info: Freetype returned null for character 140 in font BlueHighway
15:03:49: Info: Freetype returned null for character 141 in font BlueHighway
15:03:49: Info: Freetype returned null for character 142 in font BlueHighway
15:03:49: Info: Freetype returned null for character 143 in font BlueHighway
15:03:49: Info: Freetype returned null for character 144 in font BlueHighway
15:03:49: Info: Freetype returned null for character 145 in font BlueHighway
15:03:49: Info: Freetype returned null for character 146 in font BlueHighway
15:03:49: Info: Freetype returned null for character 147 in font BlueHighway
15:03:49: Info: Freetype returned null for character 148 in font BlueHighway
15:03:49: Info: Freetype returned null for character 149 in font BlueHighway
15:03:49: Info: Freetype returned null for character 150 in font BlueHighway
15:03:49: Info: Freetype returned null for character 151 in font BlueHighway
15:03:49: Info: Freetype returned null for character 152 in font BlueHighway
15:03:49: Info: Freetype returned null for character 153 in font BlueHighway
15:03:49: Info: Freetype returned null for character 154 in font BlueHighway
15:03:49: Info: Freetype returned null for character 155 in font BlueHighway
15:03:49: Info: Freetype returned null for character 156 in font BlueHighway
15:03:49: Info: Freetype returned null for character 157 in font BlueHighway
15:03:49: Info: Freetype returned null for character 158 in font BlueHighway
15:03:49: Info: Freetype returned null for character 159 in font BlueHighway
15:03:49: Info: Freetype returned null for character 160 in font BlueHighway
15:03:49: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
15:03:49: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
15:03:49: Parsing script OgreLoadingPanel.overlay
15:03:49: Finished parsing scripts for resource group Bootstrap
15:03:49: Parsing scripts for resource group General
15:03:49: Parsing script Examples.program
15:03:49: Parsing script StdQuad_vp.program
15:03:49: Parsing script deferred.glsl.program
15:03:49: Parsing script deferred.hlsl.program
15:03:49: Parsing script deferred.program
15:03:49: Parsing script deferred_post_ambient.program
15:03:49: Parsing script deferred_post_debug.glsl.program
15:03:49: Parsing script deferred_post_debug.hlsl.program
15:03:49: Parsing script deferred_post_debug.program
15:03:49: Parsing script deferred_post_minilight.glsl.program
15:03:49: Parsing script deferred_post_minilight.hlsl.program
15:03:49: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightFalloff does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 1097)
15:03:49: Compiler error: invalid parameters in deferred_post_minilight.hlsl.program(27): setting of constant failed
15:03:49: Parsing script deferred_post_minilight.program
15:03:49: Parsing script deferred_post_multipass.glsl.program
15:03:49: Parsing script deferred_post_multipass.hlsl.program
15:03:49: Parsing script deferred_post_onepass.glsl.program
15:03:49: Parsing script deferred_post_onepass.hlsl.program
15:03:49: Parsing script deferred_post_vs.program
15:03:49: Parsing script ASCII.material
15:03:49: Parsing script ASMSwizzle.material
15:03:49: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
15:03:49: Parsing script BlackAndWhite.material
15:03:49: Parsing script Bloom.material
15:03:49: Parsing script Bloom2.material
15:03:49: Parsing script CGSwizzle.material
15:03:49: Parsing script DepthShadowmap.material
15:03:49: Parsing script Dither.material
15:03:49: Parsing script DOF.material
15:03:49: Parsing script Embossed.material
15:03:49: Parsing script Example-DynTex.material
15:03:49: Parsing script Example-Water.material
15:03:49: Parsing script Example.material
15:03:49: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 1097)
15:03:49: Compiler error: invalid parameters in Example.material(762): setting of constant failed
15:03:49: Parsing script Examples-Advanced.material
15:03:50: Parsing script facial.material
15:03:50: Parsing script Glass.material
15:03:50: Parsing script GLSLSwizzle.material
15:03:50: Parsing script Halftone.material
15:03:50: Parsing script hdr.material
15:03:50: Parsing script HeatVision.material
15:03:50: Parsing script Hurt.material
15:03:50: Parsing script instancing.material
15:03:50: Parsing script Invert.material
15:03:50: Parsing script IsoSurf.material
15:03:50: Parsing script Laplace.material
15:03:50: Parsing script MotionBlur.material
15:03:50: Parsing script MRTtest.material
15:03:50: Parsing script NightVision.material
15:03:50: Parsing script Ocean.material
15:03:50: Parsing script OffsetMapping.material
15:03:50: Parsing script Ogre.material
15:03:50: Parsing script OldMovie.material
15:03:50: Parsing script OldTV.material
15:03:50: Parsing script ParticleGS.material
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:03:50: Parsing script Posterize.material
15:03:50: Parsing script pssm.material
15:03:50: Parsing script RadialBlur.material
15:03:50: Parsing script RZR-002.material
15:03:50: Parsing script SharpenEdges.material
15:03:50: Parsing script smoke.material
15:03:50: Parsing script Tiling.material
15:03:50: Parsing script VarianceShadowmap.material
15:03:50: Parsing script apache_body.material
15:03:50: Parsing script autoterraintexture.material
15:03:50: Compiler error: number expected in autoterraintexture.material(43): incorrect float constant declaration
15:03:50: Parsing script ball.material
15:03:50: Parsing script capsule.material
15:03:50: Parsing script crate.material
15:03:50: Parsing script door.material
15:03:50: Parsing script gun.material
15:03:50: Parsing script jeep_body.material
15:03:50: Parsing script jeep_wheell.material
15:03:50: Parsing script jeep_wheelr.material
15:03:50: Parsing script kk3d.material
15:03:50: Parsing script landscape.material
15:03:50: Parsing script main_rotor.material
15:03:50: Parsing script PE_materials.material
15:03:50: Parsing script plane.material
15:03:50: Parsing script racingcircuit.material
15:03:50: Parsing script scooby_body.material
15:03:50: Parsing script scooby_wheel.material
15:03:50: Parsing script tail_rotor.material
15:03:50: Parsing script target.material
15:03:50: Parsing script zombie.material
15:03:50: Parsing script deferred.material
15:03:50: Parsing script deferreddemo.material
15:03:50: Parsing script deferred_post_ambient.material
15:03:50: Parsing script deferred_post_debug.material
15:03:50: Parsing script deferred_post_minilight.material
15:03:50: Parsing script deferred_post_multipass.material
15:03:50: Parsing script deferred_post_onepass.material
15:03:50: Parsing script ROOM.material
15:03:50: Parsing script RomanBath.material
15:03:50: Parsing script myExplosion.particle
15:03:50: Parsing script ogreodedemos.particle
15:03:50: Parsing script emitted_emitter.particle
15:03:50: Parsing script Example-Water.particle
15:03:50: Parsing script Example.particle
15:03:50: Parsing script smoke.particle
15:03:50: Parsing script Examples.compositor
15:03:50: Parsing script deferred.compositor
15:03:50: Parsing script sample.fontdef
15:03:50: Parsing script ogreodedemos.overlay
15:03:50: Texture: target.png: Loading 1 faces(PF_A8R8G8B8,45x45x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,45x45x1.
15:03:50: Parsing script Compositor.overlay
15:03:50: Parsing script DP3.overlay
15:03:50: Parsing script Example-CubeMapping.overlay
15:03:50: Parsing script Example-DynTex.overlay
15:03:50: Parsing script Example-Water.overlay
15:03:50: Parsing script Shadows.overlay
15:03:50: Finished parsing scripts for resource group General
15:03:50: Parsing scripts for resource group Internal
15:03:50: Finished parsing scripts for resource group Internal
15:03:50: Parsing scripts for resource group OgreOde
15:03:50: Parsing script apache_body.material
15:03:50: Parsing script autoterraintexture.material
15:03:50: Compiler error: number expected in autoterraintexture.material(43): incorrect float constant declaration
15:03:50: Parsing script ball.material
15:03:50: Parsing script capsule.material
15:03:50: Parsing script crate.material
15:03:50: Parsing script door.material
15:03:50: Parsing script gun.material
15:03:50: Parsing script jeep_body.material
15:03:50: Parsing script jeep_wheell.material
15:03:50: Parsing script jeep_wheelr.material
15:03:50: Parsing script kk3d.material
15:03:50: Parsing script landscape.material
15:03:50: Parsing script main_rotor.material
15:03:50: Parsing script plane.material
15:03:50: Parsing script racingcircuit.material
15:03:50: Parsing script scooby_body.material
15:03:50: Parsing script scooby_wheel.material
15:03:50: Parsing script tail_rotor.material
15:03:50: Parsing script target.material
15:03:50: Parsing script zombie.material
15:03:50: Parsing script myExplosion.particle
15:03:50: Parsing script ogreodedemos.particle
15:03:50: Parsing script ogreodedemos.overlay
15:03:50: Skipping loading overlay include: 'ogreodedemos.overlay as it is already loaded.
15:03:50: Finished parsing scripts for resource group OgreOde
15:03:50: Texture: skybox_fr.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: skybox_bk.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: skybox_lf.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: skybox_rt.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: skybox_up.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: skybox_dn.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Mesh: Loading racingcircuit.mesh.
15:03:50: Texture: fence.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
15:03:50: Texture: forest.tga: Loading 1 faces(PF_A8R8G8B8,512x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x128x1.
15:03:50: Texture: grass.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:03:50: Texture: concrete.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:03:50: Texture: curb.tga: Loading 1 faces(PF_R8G8B8,128x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x256x1.
15:03:50: Texture: tarmac2.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:03:50: Texture: sand.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:03:50: Texture: barrelside.tga: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
15:03:50: Texture: tarmac2finish.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:03:50: Texture: tarmac2stage.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:03:50: Texture: devimg1.tga: Loading 1 faces(PF_R8G8B8,512x64x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x64x1.
15:03:50: Texture: drpetter1.tga: Loading 1 faces(PF_R8G8B8,512x64x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x64x1.

If you have any further ideas on what could be causing this now I would really appreciate. Even a suggestion on where I should throw in some breakpoints for debugging would be useful. Once again, you've been a great help and I am very thankful that you replied.

At first I thought this was the problem in my ogre.log:
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:12:15: 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 ..\src\OgreCgProgramManagerDll.cpp (line 66)

But then I read in some threads that this is really an irrelevant error. Is there a problem with my SDK?

EDIT: When I compare this to the Ogre.log of the successful demo binary I downloaded I see the line that should follow "Texture: drpetter1.tga: Loading 1 faces(PF_R8G8B8,512x64x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x64x1." is "*** Initializing OIS ***". My Ogre.log stops just before this line.

dermont

10-07-2009 00:10:02

The only things I can think of is:

a) to make sure that your are building against ODE 0.11.* not 0.9.*
b) Try running with OpenGL renderer
c) check that the Ogre demos run
d) run depends.exe on the demo to check for missing dependencies, if you've installed Win32 Windows SDK Tool it should be in:
\Microsoft Visual Studio 2005\Common7\Tools\bin
If not you can dowload from here:
http://www.dependencywalker.com/

Post your full Ogre log file.

RomanoDacis

10-07-2009 19:27:29

Hey dermont,

Alright, I've managed to get it working. When I tried to render in OpenGL it thankfully gave me an ODE ERROR 2 and told me it was a problem with Gimpact. I reinstalled ODE without Gimpact, reloaded the .dll and lib files in my debug folder, and it worked. However, the rendering is choppy, and it becomes more noticeable when the camera is close to the car and at higher FPS.

RomanoDacis

27-07-2009 20:07:12

Can anyone help me with the stuttering issue? I've tried both the simplescenes demo and GranTurismo using both the debug and release library and the cars seem to stutter. The stuttering is more severe when I have high FPS (100+) which leads me to believe it is an issue with the how the frame is updated.

I found something on choppy rendering here, but I'm not sure how to implement it (or if it is still valid) with the OgreODE demo:
viewtopic.php?p=31468&highlight=

RomanoDacis

27-07-2009 20:55:46

Ok, I fixed the stuttering by changing the value of const int _stepper_choice from 2 to 3 so that I now use ForwardFixedInterpolatedStepHandler.

All issues so far have been resolved. Thank you once again to dermont for the help.