Defining3DDisplays - gama-platform/gama GitHub Wiki
The use an OpenGL display, we have to define the attribute type
of the display with type:opengl
in the chosen display
of your model (or use the preferences->display windows to use it by default):
output {
display DisplayName type: opengl {
species mySpecies;
}
}
The OpenGL display shares most of the features that the java2D offers and that are described here. Using 3D display offers much more options to draw and show a simulation. A layer can be positioned and scaled in a 3D world. It is possible to superpose layers on different z value and display different information on the model at different positions on the screen.
Most of the features offers by GAMA in 3D can be found as model example in the model library in the Visualization and User Interaction/3D Visualization
Such as:
- 3D Model: Creating a simple model with building in 3D from a GIS file extruded in Building Elevation.gaml
- Built-in 3D shapes supported by GAMA are described in Built-In Shapes.gaml
- Features related to camera and the way to manipulate it are found in Camera Definitions.gaml
- Different point of view can be described on the same simulation and shared by different displays in Camera Shared Zoom.experiment
- Any GIS file can be visualized in 3D and a texture can be applied to the 3D shape in GIS Visualization.gaml
- GAMA is handling different kind of lighting such as spot lights and point lights as illustrated in Lighting.gaml
- Moving 3D object.gaml which shows how to draw a moving objet as a OBJ File and how to apply a 3D rotation on it
- Specular light can also be defined as illustrated in Specular effects.gaml