Error of loading NXS(Detritus )

spe02001

01-12-2011 07:19:20

I tried to load a mesh as
NxOgre::MeshManager::getSingleton()->load("file://./media/Box01/Box01.nxs");
but I got an error because "NxOgre::MeshManager::getSingleton()" return a NULL.
What is the problem?
How to load a NXS correctly in Detritus ?

saejox

01-12-2011 12:05:04


string nxs = ""ogre://General/" + "model"+ ".nxs";
NxOgre::MeshManager *mManager = NxOgre::MeshManager::getSingleton();
NxOgre::Mesh* m = mManager->load(nxs, "somename");


this is how.
dont forget to put nxs path in resources.cfg.