Frederick
02-12-2008 11:08:59
Hi for all,
I wrote a code to load a ".nxs" file, but the LOG say "File 'pltCxv.nxs' could not be opened for Reading" and the name of the file is correct.
I placed the file in the folder of the project and wrote the reference in the "resources.cfg", but the error persist.
I create with "flour" a convex and a trianglemesh for test, but the error persist.
The code to convex is:
The code to trianglemesh is:
The two codes above generate the error.
Please, help me!! T_T
Att,
Diogo Manhães.
I wrote a code to load a ".nxs" file, but the LOG say "File 'pltCxv.nxs' could not be opened for Reading" and the name of the file is correct.
I placed the file in the folder of the project and wrote the reference in the "resources.cfg", but the error persist.
I create with "flour" a convex and a trianglemesh for test, but the error persist.
The code to convex is:
NxOgre::Resources::ResourceSystem::getSingleton()->addMeshAs("file://pltCxv.nxs","teste");
NxOgre::Convex *cnv = new NxOgre::Convex("teste");
NxOgre::Body *body = mNxScene->createBody("bodytest", cnv, pos, nrp, "mass: 10");
The code to trianglemesh is:
NxOgre::Resources::ResourceSystem::getSingleton()->addMeshAs("file://pltTri.nxs","teste");
NxOgre::TriangleMesh *cnv = new NxOgre::TriangleMesh("teste");
NxOgre::Body *body = mNxScene->createBody("bodytest", cnv, pos, nrp, "static: yes");
The two codes above generate the error.
Please, help me!! T_T
Att,
Diogo Manhães.