supermael
06-09-2010 13:59:39
Hi,
I don't find the function openArchive in the last version of NxOgre, how can I open my file (testmesh.nxs) ?
I put the .nxs next to my executable, but it doesn't work. This is my code :
I don't find the function openArchive in the last version of NxOgre, how can I open my file (testmesh.nxs) ?
I put the .nxs next to my executable, but it doesn't work. This is my code :
NxOgre::Resource * resource = NxOgre::ResourceSystem::getSingleton()->open("testmesh.nxs",NxOgre::Enums::ResourceAccess_ReadOnly);
NxOgre::Mesh* triangleMesh = NxOgre::MeshManager::getSingleton()->load(resource);
NxOgre::ShapeDescription description;
description.mSkeleton = triangleMesh;
Critter::Body* triangleBody = mpv_PhysicMngr->getPhysicRenderSystem()->createBody(description, NxOgre::Vec3(0, 50, 0), "testmesh.mesh");