![]() Do not confuse the Height of the rectangle and its Z-Height: the former actually becomes "Y-Height" in 3D. The Z-coordinate of their bottoms, along with their Z-heights, are defined on the Advanced properties page. In 3D, the rectangle shape will become parallelepiped (a solid whose faces are all parallelograms) and the oval will become a cylinder (see the Figure). ![]() Therefore, by default, they will appear in the 3D scene. Indeed, they are in fact the same objects, with the only difference being that their Show in 3D scene property is selected by default. 3D Animation 2D Animation "A very simple 3D model" at runtimeĤ Simulation Modeling with AnyLogic: Agent Based, Discrete Event and System Dynamics Methods 4 Primitive 3D shapes You may have noticed that the primitive shapes in the 3D palette are the same as in the Presentation palette. In the 3D window you can drag the scene, use the mouse wheel to zoom, or use Alt+drag to rotate the view. Run the model.ģ Simulation Modeling with AnyLogic: Agent Based, Discrete Event and System Dynamics Methods 3 House polyline Line color: gold Width: 4 Z: 0 Z-Height: 1 Maximum capacty: yes Animation guide shape: polyline Entity animation shape: officeworker Office Worker dropped from the 3D Objects palette rectangle Line color: no line Fill color: sand texture Z: -1 Z-Height: 1 3D Window Store The "source code" of a simple model with 3D animation At runtime, you are able to view 2D and 3D animations simultaneously. ![]() Drag the 3D window from the 3D palette and place it below the flowchart. Set the Entity animation shape of the source object to officeworker and set the Animation guide shape of the delay object to polyline. It looks like a bug, but don t worry this is the top view of the office worker. From the same palette, drop the Office Worker anywhere on the canvas. Open the 3D Objects palette and drag the House and the Store objects on the background rectangle. On the Advanced property page, set Z and Z-height of the shapes, as shown. The shapes dropped from that palette differ from the same shapes from the Presentation palette only in that they have the property Show in 3D scene selected by default. Open the 3D palette and use it to draw a background rectangle and a polyline as shown in the Figure. Select Maximum capacity for the delay object, and leave all other parameters as is. Put together a simple flowchart as shown in the Figure. In this model, people will exit a house and walk to a store located nearby. Primitive shapes and 3D-specific objects Frequently used 3D graphics Same as in Presentation palette but with "Show in 3D" property selected ` 3D-related palettes Example: A very simple model with 3D animation We will create a very simple model with 3D animation. The first one contains primitive shapes and 3D-specific objects, such as 3D window or Camera.Ģ Simulation Modeling with AnyLogic: Agent Based, Discrete Event and System Dynamics Methods 2 The second palette contains frequently used 3D graphics such as a person, car, forklift truck, house, etc., that can be associated with static or dynamic objects in the model. AnyLogic 2D graphical editor Z Directions of axes in 3D space X Interactive 3D animation at runtime Y Creating a 3D animation There are two palettes for 3D animation: 3D and 3D Objects (see the Figure). The models originally designed as 2D can be converted into 3D easily by defining the Z-properties of the 2D shapes. AnyLogic graphical editor is two-dimensional, and the natural scenario of building a 3D animation starts with a 2D (X,Y) plane, upon which you draw the "XY projection" of the scene, and then "grow" the picture into the third, Z-dimension (see the Figure). 3D animation works everywhere: when running the model from within the AnyLogic development environment, exported as a Java application, or published on the web as a Java applet. You can view 3D animation in one or multiple 3D windows simultaneously with 2D animation. You can associate the 3D objects with entities, pedestrians, rail cars, and vehicles. You can define a 3D scene, use the standard shapes provided in the 3D palette, imported 3D graphics, or include 3D objects composed of primitive shapes you create yourself. 1 Simulation Modeling with AnyLogic: Agent Based, Discrete Event and System Dynamics Methods 1 3D animation AnyLogic supports both 2D and 3D space in simulation models, and enables you to create high-quality interactive 3D animations in addition to more technical-looking 2D animations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |