Page 489 - ExtendSim User Guide
P. 489

Introduction to E3D 463
Overview
• AnItemAnimationtabforselectinga3Dobjecttorepresenttheitemsthatleavetheblock and, in some cases, for choosing customizable aspects of their appearance (known as “skins”).
• ABlockAnimationtabforchoosinga3Dobjecttorepresenttheblockinthe3Dworld.You can also define its scale, rotation, and location in the 3D window, as well as other properties.
Furthermore, the Item library’s Transport block is useful for representing the movement of an item from one point to another along a path, while the Convey Item block represents moving items along a conveyor.
The most common way to use the E3D environment is to build a discrete event model using the Item library blocks and run the simulation with the E3D window open. This displays the model and its items, events, and results in the 3D world.
☞ ExtendSim includes an extensive collection of 3D objects to represent items and blocks. You can also add your own 3D objects.
Animation library
Blocks in the Animation library perform specific 3D functions such as enabling sunlight or placing scenery objects or text boxes in the E3D window. The Animate 3D block provides a non-programming method to perform a 3D action in response to an item’s passage. For instance, you can create or delete an object, mount one object on another, and so forth.
Custom 3D objects and blocks
Since the E3D environment is open-source, you can modify the animation capabilities of exist- ing blocks, create entirely new 3D objects and 3D-enabled blocks, and modify object behav- iors. ExtendSim has numerous ModL functions that allow you to define custom behavior for 3D objects and events. And GarageGames provides the Torque Script scripting environment which provides additional control over the animation environment and object behaviors (see “Torque Game Engine” on page 465 for GarageGames information.)
ModL functions can even be used to perform 3D animations that do not require that the model be run. For instance, the 3D animation of the Boids model was created using custom-built blocks and does not require the model to be run. The Boids model is located in the folder \Examples\3D Animation.
Overview
The ExtendSim 3D (E3D) window is where 3D animation occurs. This is a separate window from the worksheet where you build and run a simulation model. When you run a discrete event simulation with 3D animation on, 3D-enabled constructs from the model worksheet are represented as graphical objects within the E3D window. The E3D window contains an editor so you can modify the 3D representation of the model, add objects, and edit the terrain.
For instance, by default the blocks of a discrete event model are represented in the E3D win- dow by 3D block objects, the items that move through the model are represented by 3D item objects, and the model’s connections indicate the path of the 3D item objects.
Features
Since it is common to use the Item library to create discrete event models that are then run with 3D animation, the following features are described in regards to the Item library. Keep in mind, though, that you can build custom blocks that are also 3D-enabled.
E3D


































































































   487   488   489   490   491