Purpose

Create a navigation mesh from OWT data for agent pathing.

How to Use

Generate a navigation mesh using the following steps

  1. In your unity scene, create an empty game object (Game Object → Create Empty) and attach the LoadTiles component
  2. Un-check “Load at start” and put the path of the terrain that you wish to load (for example Assets/StreamingAssets/Ride_Terrains/USC_LMAB_SEGT_ENU_5cm_170520_Tile/terrainDescriptionSplit.json for USC Campus)
  3. From the Unity menu toolbar, select Ride → Terrains → Load Terrain or Ride → Terrains → Load Plane and wait for the terrain to load
  4. Once loaded, go to Window → AI → Navigation. This will open the navigation window
  5. Select Mesh Renders under the Object tab and then select all the mesh renderers under TerrainRoot in the hierarchy window. Make sure the Navigator Static checkbox is checked
  6. Select the Bake tab.  Click the bake button.
  7. A new folder will be created in the same folder as your scene with the same name. Inside of this folder is the navigation mesh data.
  8. Select terrain root and delete it
  9. Commit the scene and the navigation data
Scroll Up