Getting Started with the Navigation Lab: Using Multiple Databases

NavData is partially dependent on the physical characteristics of the characters that will use it in the game. In order to have characters with significantly different dimensions in your game at the same time — for example, humans and giants — you typically need to create multiple sets of NavData, and stream them into multiple different Databases at runtime. For a more thorough discussion, see Using Multiple Databases.

The Navigation Lab allows you to set up multiple sets of NavData for a terrain, and to debug games that use multiple simultaneous Databases.

For a sample that illustrates most of the concepts discussed below, open multidatabase > humanandgiant.LabSample from the Samples tab.

Creating a new set of NavData

If you have already created a set of NavData for a terrain, you can create another new set with different generation settings by incrementing the value of the Database index control in the Generation panel and running a new generation.

The sectors in the new set of NavData are added to the list in the Scene tab.

Setting the current Database

The 3D view in the Navigation Lab displays the NavData and WorldElements from only one Database at a time.

Bots and WorldElements that do not include the current Database in their list of Database bindings can have no effect at all on the Bots and data in the current Database. They are therefore not shown at all by the Navigation Lab. For more on Database bindings, see Using Multiple Databases.

Spawning labgame objects