jarwulf
14-08-2011 02:33:38
After moving to another computer I switched to the latest version of NxOgre. I'm getting an unhandled exception with what I believed used to work under a previous version on a different computer.
Crash occurs where marked
The debugger autobreaks here...
NxOgreRigidBody.cpp
any idea what's wrong and how to fix it?
Crash occurs where marked
SceneGeometry* GameStateII::makeLevel(const Matrix44& globalPose)
{
if (mLevelMesh == 0)
mLevelMesh = NxOgre::MeshManager::getSingleton()->load("ogre://General/BeltofWeller5.nxs", "level");//"ogre://General/BeltofWeller5.nxs"
/*CRASH OCCURS ON THIS LINE*/ SceneGeometry* scene_geom = mScene->createSceneGeometry(TriangleGeometryDescription(mLevelMesh), globalPose);
mRenderSystem->createSceneNodeEntityPair("BeltofWeller5.mesh", Vec3(globalPose), Quat(globalPose));
return scene_geom;
}
The debugger autobreaks here...
NxOgreRigidBody.cpp
NxShapeDesc* shape_description = shape.createShapeDescription();
actor_description.shapes.push_back(shape_description);
//////////////////////////////////////////////////
// RIGIDBODY_CREATE_OR_THROW_EXCEPTION
//////////////////////////////////////////////////
/*AUTOBREAK*/ mActor = mScene->getScene()->createActor(actor_description);
if (mActor == 0)
{
NxOgre_ThrowException(DescriptionInvalidException, Reason::Exceptionise(actor_description), Classes::_RigidBody);
}
//////////////////////////////////////////////////
// RIGIDBODY_SINGLE_SHAPE_DESCRIPTION_PASS_POST
//////////////////////////////////////////////////
any idea what's wrong and how to fix it?