is anyone still interested in using this library? I spent a couple of hours today fixing it up for 1.6.
I've got it working with the hello world and car demo, but there is still a problem with terrain.
it seems that the 1.6 api has changed so that terrainNode->getMeshBufferForLOD takes a CDynamicMeshBuffer
I changed the mesh buffer to this type, but when I run the code it goes into an endless loop around here:
- Code: Select all
for (int i = 0; i < (int)meshBuffer.getIndexCount(); i +=3)
{
v1i = indices[i];
v2i = indices[i+1];
v3i = indices[i+2];
vArray[0] = (vertices[v1i].Pos.X*terrain->terrainScale.X);
vArray[1] = (vertices[v1i].Pos.Y*terrain->terrainScale.Y);
vArray[2] = (vertices[v1i].Pos.Z*terrain->terrainScale.Z);
vArray[3] = (vertices[v2i].Pos.X*terrain->terrainScale.X);
vArray[4] = (vertices[v2i].Pos.Y*terrain->terrainScale.Y);
vArray[5] = (vertices[v2i].Pos.Z*terrain->terrainScale.Z);
vArray[6] = (vertices[v3i].Pos.X*terrain->terrainScale.X);
vArray[7] = (vertices[v3i].Pos.Y*terrain->terrainScale.Y);
vArray[8] = (vertices[v3i].Pos.Z*terrain->terrainScale.Z);
NewtonTreeCollisionAddFace(treeCollision, 3, (float*)vArray, 12, 11);
}
any ideas? should I just try another engine or library?