Terrain Locator

The Terrain Locator determines:

  • the ground geometry on which to place Entities and to which the Entities will adapt their feet height
  • the navigation mesh (static obstacles, borders of the environments, inaccessible areas...) that will be used during the navigation of Entities in a simulation.

Notice that, even if the navigation mesh is often computed from the ground geometry, those can be different if required. It is possible to use a rough geometry proxy to create a navigation mesh (will be faster to compute) and use a more detailed geometry as ground geometry. It is also possible to use the "Default Plane" navigation mesh mode if there are no obstacles in your scene (and even if your geometry has reliefs.

CREATION

  • Golaem Shelf: 
  • Golaem Menu: Terrain Locator
  • Crowd Tool: NavMesh Creator
  • MEL command: glmTerrainLocatorCmd;
If the Maya selection contains meshes when creating a Terrain Locator, they will also be mapped to the Terrain Locator.
 
Note that several Terrain Locators can be used in a simulation and can be chosen in the Crowd Manager and in each Crowd Field. Thus, if two Crowd Fields are using two different Terrain Locators, their Entities will not be able to avoid each other.

Configuration

Ground Attributes

Ground Mode Ground to which the Entities will adapt during the crowd simulation. The available choices are:
  • Default Plane: the ground is considered to be an infinite plane at zero height (y = 0)
  • NavMesh Ground: the ground is the navMesh loaded from the NavMesh File attribute. This can be faster than Maya Geometry but also less accurate
  • Maya Geometry: this option allows to map any Maya geometry as ground to be used in the crowd simulation.
  • None: no ground is used
In Maya Geometry Maya polygons used as ground geometry, when the Ground Type is set to Maya Geometry.
Dynamic Ground If checked, the ground geometry will be recomputed at each frame (useful only if the input geometry is animated)
Double Sided If checked, all the mapped geometry will be used as ground geometry, otherwise only the geometry facing up will be used

Navigation Attributes

NavMesh Mode

Mode of the navigation mesh. The available choices are:

  • Default Plane: the navigation mesh is considered to be an infinite space without any obstacles
  • NavMesh File: the navigation world is defined by a navigation mesh file (see below).
  • None: no navigation mesh is used

The navigation mesh is required when using navigation and path finding (see GoTo Behavior and Navigation Behavior).

NavMesh File Navigation mesh file (gse file) to use in the crowd simulation and to display. The Navigation Mesh gile can be computed with the Navmesh Creator.

Display Attributes

Obstacle Borders (red lines)

if checked the locator displays the obstacles in the environment. If no NavMesh file is loaded nothing is displayed.

When a terrain locator with a NavMesh is used with the Population Tool or with the GoTo Behavior and the Navigation Behavior, the zones surrounded by obstacle borders are not accessible by Entities

Roadmap (orange lines) graph linking all the accessible areas in the environment. If an area or a corridor is not covered by the roadmap, it means that it is not accessible.
Partial Borders (blue lines) these are special constraints in the navMesh. They can be crossed by Entities
Free Borders (grey lines) these are all the other edges in the navMesh that can be crossed by Entities
Navigation Cells (green lines and triangles) all the walkable cells of a navigation mesh
Ground Geometry (dark grey lines and triangles) the input ground geometry
Line Width width of the lines drawn by the Terrain Locator
Locator Height height difference to add to the lines drawn by the Terrain Locator