You can build complex 2D presentations in AnyLogic using your model's object structure. A presentation is a drawing composed of various shapes such as circles, rectangles, and lines. Each shape has properties that define its visual appearance, including position, height, width, and color.
You can animate your presentations using dynamic properties of presentation shapes. Dynamic properties let you define values during simulation and link a shape’s appearance (its graphical properties) to any agent data. This way, the presentation reflects changes in the agent’s state during simulation. As the data changes, the visual representation updates accordingly.
AnyLogic allows you to create 3D animations for your models. 3D animation provides the most realistic and intuitive way to visualize simulated processes. AnyLogic supports building 3D animations using standard geometric shapes: rectangle, line, oval, polyline, image, text, group. These shapes support a third dimension — Z-height — and render in both 2D and 3D presentation scenes, allowing you to view two representations of your process simultaneously.
Standard shapes work well for simple objects like columns and boxes. For more complex objects such as railcars, forklifts, and airplanes, you would typically import external 3D models using the 3D Object element. AnyLogic supports 3D models in .dae (Collada), .gltf/.glb, .fbx, and .obj file formats.
To see the 3D animation scene in run mode, add a 3D window. During design time you will see a placeholder.
To work on the animation scene, you can use both the graphical editor and the 3D Preview view which allows you to visualize your model in 3D during design time without running the model.
You can make your presentations interactive by adding controls. AnyLogic provides a full range of controls, including buttons, text inputs, checkboxes, and sliders. You can modify model variables and parameters by associating them with controls and adjusting the controls at runtime.
AnyLogic presentations are associated with model components — agents — and composed according to the model hierarchy. Presentations are developed in a modular way, with each object having its own presentation that is created separately. These presentations can then be incorporated into any higher-level presentation scene associated with a container object. AnyLogic handles assembling the complete picture and manages the placement and transformation of elements.
-
How can we improve this article?
-