Skip to content

Tutorial ‐ Step 1

ptaillandier edited this page Jan 24, 2024 · 20 revisions

Step 1: generation of the GAMA VR model

Creation of the project

Create a new GAMA project, then copy inside in this project the folders "models" and "includes" from "Toy Models/Traffic" of the model library. In the "model" folder, delete all the models except "Traffic and Pollution.gaml".

Generation of the VR model

Open the "Traffic and Pollution.gaml" model in the editor, then, select in the "Unity VR" menu "Model to VR". A Wizard should open.

Page 1 - Define the general information to define the VR experiment

  • Minimum duration of a cycle (in s): keep default value at 0.05. This represents the minimum time between two simulation steps. As GAMA will be sending information to Unity at each simulation step, setting a minimum value for this variable ensures that the Unity client doesn't receive too much information too quickly.

  • Main experiment: name of the experiment, which will be extended to include a VR version. In the case of the model used in this tutorial, only one experiment is defined ("traffic"), which will be extended.

Page 2 - Define the information about the display

  • Main display: name of the display, which will be extended to include a VR version. In the case of the model used in this tutorial, only one display is defined ("carte"), which will be extended.

  • Display to hide: displays that will not be displayed in the experiment. In this tutorial, we don't want to have the "carte" display, so it must be checked.

Clone this wiki locally