Jump to content

  • Log In with Google      Sign In   
  • Create Account

O-san

Member Since 19 Apr 2007
Offline Last Active Nov 17 2014 07:09 AM

#4868969 Recast Navigation

Posted by O-san on 04 October 2011 - 07:15 AM

Sorry for the late reply, I had this problem also, found no tutorials or anything. My best tip is to read through the example code, I found it not so difficult once I got started. Look through Sample_StatMeshSimple.cpp especially the function bool Sample_StatMeshSimple::handleBuild(), it is quite well commentated.

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().


#4793817 Title screen tutorial

Posted by O-san on 03 April 2011 - 07:46 AM

Hello, thought I'd share my workflow used when drawing a title screen for one of my games. Find the tutorial here. Comments are appreciated.

The final picture:
Posted Image


PARTNERS