Crossbones+ - Reputation: 1438
Posted 22 August 2011 - 09:37 PM
Are there any tutorials or documentation, or just an explanation of what commands to call for this library, anywhere? I don't have any specific questions, I just can't tell how to even get started. Any information you can provide would help, thanks.
Build mobile games with native code
Members - Reputation: 1859
Posted 04 October 2011 - 07:15 AM
I build my nav mesh from a waveobj memory buffer instead of an actual file. I generate this buffer from my geometry. I then load the buffer using the existing methods rcMeshLoaderObj::addVertex rcMeshLoaderObj::addTriangle. The resulting mesh needs to have it's bounds calculated before the nav mesh can be built from it:
rcCalcBounds(mMesh->getVerts(), mMesh->getVertCount(), mMeshBMin, mMeshBMax);
Lastly I build the navigation mesh using my own handleBuild function which is quite similar to Sample_StatMeshSimple::handleBuild().