lgomide
18-11-2008 12:57:59
I'm trying to load a .nxs file into my NxOgre application, but I get runtime error when I try to use it to specify a shape in the createBody function
first, I converted my ogre mesh with flour:
flour convert in: avatar.mesh, into: skeleton, out: test.nxs
after that, I try to load it in my program
this code is in the createScene method of my ogre app, and I get runtime error in the creteBody line... does someone know what is wrong?
I'm using NxOgre.1.0.22T2 and PhysX SDK 2.8.1. The mesh is a human avatar, about 1.4 MB
sorry for my poor English
first, I converted my ogre mesh with flour:
flour convert in: avatar.mesh, into: skeleton, out: test.nxs
after that, I try to load it in my program
NxOgre::Resources::ResourceSystem::getSingleton()->addMeshAs("file://test.nxs","tentativanxs");
NxOgre::TriangleMesh* mTriangleShape = new Ogre::TriangleMesh("tentativa.nxs");
mScene->createBody<NxOgre::Body>("Sphere01.mesh", new NxOgre::Cube(50.0f), Ogre::Vector3(2000, 350, 1700), NxOgre::ActorParams("mass: 5"));
this code is in the createScene method of my ogre app, and I get runtime error in the creteBody line... does someone know what is wrong?
I'm using NxOgre.1.0.22T2 and PhysX SDK 2.8.1. The mesh is a human avatar, about 1.4 MB
sorry for my poor English