Help for ressource system

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 :
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");

supermael

10-09-2010 22:17:21

No idea ?

betajaen

10-09-2010 22:24:09

I think it's;

.....->open("file://testmesh.nxs");

You don't need setup any archives anymore, it's automatic now.

supermael

11-09-2010 09:42:42

Thank you ! It works :)