nxs mesh runtime error

joaopccosta

23-11-2010 14:43:03

Hi there.

anyone know why the app could crash (throwing a runtime error) when i try this:

NxOgre::Mesh* mesh = mMeshManager->load("file:C:\\Project\\OgreSDK\\media\\models\\Sphere01.nxs","sphere");


I cooked the .mesh file through the ogrexmlconverter->ogrexmltoflower->flour0.47
i even tried to use the barrel.nxs from the tutorials and the app and got the same error :S

thanks for any help

betajaen

23-11-2010 14:50:34

It's "file://"

joaopccosta

23-11-2010 14:59:26

does the same :(

joaopccosta

23-11-2010 15:02:46

i even tried to work around it with

Ogre::MeshPtr sphere = mMeshManager->load("Sphere01.mesh",Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY,Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY,true,true);

NxOgre::MeshData* mesh_data = Critter::MeshFunctions::read(sphere);
mesh_data->mType = NxOgre::Enums::MeshType_Convex;
mesh_data->cook("file://my_mesh.nxs");
delete mesh_data;

NxOgre::MeshManager::getSingleton()->load("file://my_mesh.nxs", "my_mesh");


with the same error :( bummer

joaopccosta

01-12-2010 22:02:47

Solved. The problem was that the original mesh had 255+ faces, which would screw things up.