README.txt 1.2 KB

123456789101112131415
  1. You can use Spatial Mapping in any scene with a ZEDManager in it.
  2. - Select the object with ZEDManager on it. This is usually the root object of ZED_Rig_Mono or ZED_Rig_Stereo prefab.
  3. - In the Inspector, open the foldout arrow besides "Spatial Mapping"
  4. - Adjust the settings as you see fit
  5. - While the scene is running, click "Start Spatial Mapping"
  6. - When you are done scanning, press the same button which will read "Stop Spatial Mapping"
  7. In this sample, scanning the area will cause a bunny to spawn in your environment once you press the "Stop Spatial Mapping" button, so long as there is enough flat, upward-facing surface.
  8. This happens because the NavMeshSurface script on the Navigation object subscribes to the ZEDSpatialMapping.OnMeshReady event. When that event is called, it builds a NavMesh, and calls its own event, OnNavMeshReady. Then, EnemyManager, which is subscribed to that OnNavMeshReady event, will attempt to place a bunny on the nav mesh.
  9. You can find more information on using the ZED's spatial mapping features in Unity here: https://www.stereolabs.com/docs/unity/spatial-mapping-unity/
  10. For more general information about the ZED's spatial mapping features, click here: https://www.stereolabs.com/docs/spatial-mapping/