OgreOde and dTRIMESH_GIMPACT error

Happy-Howard

09-03-2007 08:33:43

Hi! I'm trying to use OgreOde with gimpact instead of opcode. The reason for this is I have had problems with the trimesh-sphere collision detection (problem desctribed here http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2810&highlight=).

I was hoping that using gimpact would solve this for me. Unfortunately my program craches as soon as I call mStepper->step(time) when using gimpact. The crash is in the function gim_trimesh_update_vertices when executing the macro GIM_PROCESS_BUFFER_ARRAY.
Error message is "Unhandled exception at 0x00b11a17 (ode.dll) in SuperGolf.exe: 0xC0000005: Access violation reading location 0x00000000".

I have no idea what is causing it and I realize my description of the problem is somewhat lacking. Any help appreciated :)

Happy-Howard

09-03-2007 11:06:25

Ok I found the reason for the crash. There is no dInitOde() in OgreOde, atleast not the version I'm running. dInitOde looks like this:


void dInitODE()
{
#if dTRIMESH_ENABLED && dTRIMESH_GIMPACT
gimpact_init();
#endif
}


So it's required when running gimpact. That solved the crash, my collision detection was totally screwed using gimpact but that's another question :)

rewb0rn

09-03-2007 14:05:55

Guess this should be updated in cvs @tuan