OgreNewt TreeCollision causes Ogre to crash?

Megaman

25-02-2009 14:44:51

Hi there,

Am currently trying to convert a mesh file into a treecollision, but am having some problems with the program crashing whenever I try to run it.

This is the line that causes a Win32exception:
OgreNewt::CollisionPrimitives::TreeCollision trackPhysics = OgreNewt::CollisionPrimitives::TreeCollision(mWorld,node,false);

And when stepping through in VS, it has problems at these lines in the constructor for a treecollision:

Ogre::VertexDeclaration* v_decl = v_data->vertexDeclaration;
const Ogre::VertexElement* p_elem = v_decl->findElementBySemantic( Ogre::VES_POSITION );


Can anyone shed some light onto why this might be? Could it be a problem with the mesh?

Thanks

Zero23

25-02-2009 21:43:45

Which Version of OgreNewt you use?

May there is something wrong with your Mesh? Try another^^

Zero

Megaman

26-02-2009 13:31:26

Well that was a bit stupid of me not to try that. Another mesh worked and had exported the original from maya, and exporting it in the LFA scene manager seems to have done the trick! Maybe I had been using an old version of the maya exporter or something.

Thanks!