-
Notifications
You must be signed in to change notification settings - Fork 99
Defining3DDisplays
RoiArthurB edited this page Sep 11, 2023
·
28 revisions
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
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Preferences
- Troubleshooting
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Exploring Models
- Optimizing Model Section
- Multi-Paradigm Modeling
- Manipulate OSM Data
- Diffusion
- Using Database
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Headless mode
- Using Headless
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Expressions
- Exhaustive list of GAMA Keywords
- Installing the GIT version
- Developing Extensions
- Introduction to GAMA Java API
- Using GAMA flags
- Creating a release of GAMA
- Documentation generation