Convex mesh problem

CmonGirl

22-10-2010 15:05:06

Hi guys! I am developing NxOgre project where I need to implement some convex mesh. The problem is, some debug attempts running perfect however other times there is a heap error I receive. Following is the code i tried on NxOgre 1.5.5 : ]
NxOgre::Shapes shapes;
NxOgre::Mesh* convexMesh = NxOgre::MeshManager::getSingleton()->load("media:HULL_PHY.nxs");
assert(convexMesh);
NxOgre::Convex* convex = new NxOgre::Convex(convexMesh);
assert(convex);
shapes.insert(convex);

Will be appreciate for any help!

Regards

betajaen

22-10-2010 15:21:59

Can't you use Detritus? and what are the asserts for?

CmonGirl

22-10-2010 15:56:34

Well I should use 1.5.5 : ( Asserts are not problem, might be deleted. Any idea?

betajaen

25-10-2010 07:45:01

Can you trace the heap error for me? I know your using BM, but the Detritus system for handling external resources is far superior and less error prone.

CmonGirl

26-10-2010 14:26:55

Thanks beta for reply. I restart windows and solved this problem :)