[Library Models] Turning global facet torus to true messes up agents display with certain models #3783
Labels
About GAML
This issue concerns the GAML language
About Models Library
This issue or request concerns the models shipped with GAMA
😱 Bug
The issue reveals a bug in GAMA
🖥 Display OpenGL
This issue or request concerns only OpenGL displays
V. 1.9.1
Bug specific to the 1.9.1 release
Milestone
Describe the bug
I run into examples of models from the library (Ant Foraging.gaml and soccer.gaml) where turning global facet torus to true, makes display not displaying agent or env anymore. It also raises a NPE related to OpenGL: the two lines
keeps repeating in eclipse console, even when the model is paused.
To Reproduce
Steps to reproduce the behavior:
torus: true
inglobal
definitionclassic
simulation experimentExpected behavior
Displays run as if the environment was not a torus one. I do not know exactly how torus world should be considered, but there is example of models (boids.gaml for instance) that work like a charm with toroidal environment...
Screenshots
With torus off:
![Screen Shot 2023-04-17 at 11 58 18](https://user-images.githubusercontent.com/13599506/232451797-62e9bfb2-c9b4-4023-bc03-f4c6d2b95fbb.png)
With torus on:
![Screen Shot 2023-04-17 at 11 57 08](https://user-images.githubusercontent.com/13599506/232451565-13dcaac0-08d9-4d57-a6b6-276f3c7e2130.png)
Desktop (please complete the following information):
Additional context
The facet initially messes up with one of my model (agent appeared glitched, with part of drawn geometry missing, huge in size, etc.) , and then I investigate potential same behavior in model library. All models that feature torus global by default works as intended.
The text was updated successfully, but these errors were encountered: