Error of loading NXS(Detritus )

Discussion related to the PhysX OGRE binding.

Moderators: OGRE Team, NxOgre Moderators

Error of loading NXS(Detritus )

Postby spe02001 » Thu Dec 01, 2011 8:19 am

I tried to load a mesh as
but I got an error because "NxOgre::MeshManager::getSingleton()" return a NULL.
What is the problem?
How to load a NXS correctly in Detritus ?
Posts: 36
Kudos: 0
Joined: 04 Sep 2008

Re: Error of loading NXS(Detritus )

Postby saejox » Thu Dec 01, 2011 1:05 pm

Code: Select all
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.
Posts: 30
Kudos: 1
Joined: 12 Oct 2011

Return to NxOgre

Who is online

Users browsing this forum: No registered users and 2 guests