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:
And when stepping through in VS, it has problems at these lines in the constructor for a treecollision:
Can anyone shed some light onto why this might be? Could it be a problem with the mesh?
Thanks
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