Hi, I'm afraid I got another issue with Fulcrum Physics:
I've I attached a model, which doesn't work with Triangle Mesh Collision (both makeTriangleMeshFromDBO(...) and makeTriangleMesh(...) return false, and the RemoteDebugger doesn't show the model). DarkGDK is loading the model correctly.
Here's a simple code sample I used to try out the model:
#include "DarkGDK.h"
#include "FulcrumPhy.h"
FulcrumPhy physics;
void DarkGDK ( void )
{
physics.start(true);
dbLoadObject("sample.x", 1);
dbMakeMeshFromObject(2, 1);
dbMakeObject(2, 2, 0);
dbPositionObject(2, 5, 0, 0);
physics.makeTriangleMeshFromDBO(2);
while ( LoopGDK ( ) )
{
physics.getPhysicsResults();
physics.update();
dbControlCameraUsingArrowKeys(0, 1, 1);
physics.simulate();
dbSync ( );
}
return;
}
Maybe it is something with the number of polygons... The model uses more polygons than the models I've tried before:
Polygon Count: 24882
Vertex Count: 18501
Smaller tree groups do work (They have only about half the amount of polygons).
JulianMH