NazguL86
06-04-2010 01:06:34
Is there a way to visualize the loaded .nxs file on OGRE ?
To explain briefly I created a model with blender and then exported into .mesh and .nxs. The problem is that the .nxs model seems not working properly - meaning that for example shooting objects on it, they don't bounce back or they bounce back in a wrong way. I suppose that this is due to a wrong position of the .nxs model with respect to the mesh model, the pivot of the mesh is centered, and so this should not be the problem - if I could visualize how it is positioned it would be very easy to understand the problem.
Another question is about rescaling a .nxs (convex or triangle) file - is it possible?
Meaning that for example loading a :
NxOgre::Mesh* triangleMesh = NxOgre::MeshManager::getSingleton()->load("media:Barrel.nxs");
OGRE3DBody* convexBody = mRenderSystem->createBody(triangle, NxOgre::Vec3(0, 0, 0), "Barrel.mesh");
convexBody->getSceneNode()->scale(0.15,0.15,0.15);
How could I resize the Barrel.nxs file directly from the code ?
To explain briefly I created a model with blender and then exported into .mesh and .nxs. The problem is that the .nxs model seems not working properly - meaning that for example shooting objects on it, they don't bounce back or they bounce back in a wrong way. I suppose that this is due to a wrong position of the .nxs model with respect to the mesh model, the pivot of the mesh is centered, and so this should not be the problem - if I could visualize how it is positioned it would be very easy to understand the problem.
Another question is about rescaling a .nxs (convex or triangle) file - is it possible?
Meaning that for example loading a :
NxOgre::Mesh* triangleMesh = NxOgre::MeshManager::getSingleton()->load("media:Barrel.nxs");
OGRE3DBody* convexBody = mRenderSystem->createBody(triangle, NxOgre::Vec3(0, 0, 0), "Barrel.mesh");
convexBody->getSceneNode()->scale(0.15,0.15,0.15);
How could I resize the Barrel.nxs file directly from the code ?