VRML Examples
- CAP 4800 / CAP 5805 -
* World with simple geometry - a red sphere .................................................
..World
with simple geometry - a red sphere.............................................world0.wrl
* World with more complex geometry - 3 red spheres and 3 green arrows..........
..World
with more complex geometry - 3 spheres and 3 arrows......world1.wrl
..World
with dynamic model type (FSM) mapping........protos2.wrl..world2.wrl
..World
with behavior and industrial plant metaphor..protos3.wrl..world3.wrl
- World Description: This world simulates Finite State
Machine(FSM).
.
The FSM has three states (s1, s2, and s3) and 3 transitions (t1, t2, t3).
This example serves as a demonstration of creating a metaphor on top
of an FSM. We use an industrial plant metaphor with tanks and pipes.
Tanks Tank1, Tank2 and Tank3 represent the states state1, state2 and
state3. Ppe1, Pipe2 and Pipe3 represent the 3 transitions.
- The logic: (s1,0)->s1; (s1,1)->s2; (s2,0)->s2;
(s2,1)->s3; (s3,0)->s3; (s3,1)->s2
.
- The input is initially "off" (or 0) and flips to an "on" (or
1) state when an object is touched.
Tanks change color intensity when a state is enabled.
.
..Industrial
Plant Metaphor with a change in geometry..protos4.wrl..world4.wrl
- World Description: This world wass
created by Ryan M. Donahue, a student in CAP 5805.
The world models a finite state machine that has three states, three transitions
and one possible input.
Each tank represents a state, and each set of pipes from one tank to another
represents a possible
transition from one state to another. Clicking the left mouse button over
the model signifies an input.
The water emptying from one tank to another illustrates which transition
is activated by the input.
- Click the picture above to view the VRML world.
.
When viewing the world, click anywhere over the model to activate the
animation.
..World
with a Human Agent metaphor.............................protos5.wrl..world5.wrl
- World Description: This world was created by Naganandhini Kohareswaran,
a student in CAP 5805.
"I started with the model in Dr. Fishwick's website. I first went through
the code and understood
the whole code and
planned out what to do next. Then I thought of a metaphor or the FSM.
I came up with the model of gazebos, with a person walking through them.
The gazebo represents
the states and the path between them the transition, while the direction
of movement of the lady
represents the direction of the state transition.
The presence of the lady in the gazebo and
the glowing of the light in the gazebo indicates that the state is
active."
* World with Functional Block Model (FBM) ..................................................
..FBM
World with 1 function (transparency)...........fbm0proto.wrl..fbm0.wrl
..FBM
World with 3 functions (transparency).........fbm1proto.wrl..fbm1.wrl
- World Description: This world simulates Functional Block Mode(FBM).
.
The input transparency value 0.9 is fed into the first function which
decreases the value by 0.3 and outputs the 0.6 as a result.
The transparency value is represented as the following function:
f(t+delta t) = f(t) - 0.3
The result is then fed into the next machine and so on. Initially, the
transparency of each box is set to the input transparency value and
represent the value as it is being processed .
.
- To start the simulation, click the green button on the lower middle
part of the screen. .
* World with System Dynamics (SD) ..............................................................
..World
with System Dynamics (SD)........................sdprotos.wrl..sdworld.wrl
- World Description: This world simulates System Dynamics.
.
Cylinder on the middle represents a tank and the level of water(L) is
represented dynamically according to the following equation:
dL/dt = R1 - R2
where R1 and R2 represent the rate of incoming and drain valves.
- The simulation starts automatically when the world is loaded.
.
* World with Petri Net (PN) ...........................................................................
..World
with Petri Net (PN).............pnobjects.wrl..pnprotos.wrl..pnworld.wrl
- World Description: This world simulates petri net. The number
of starting tokens are: .
WholeSheetAccumulator: 9
.
HalfSheetTopAccumulator: 5
.
HalfSheetBottomAccumulator: 0
.
FinishAccumulator: 0
.
The places that contain one or more tokens are light transparency
and the places that contain zero token are dark transparency.
The number beside each place indicates the number of tokens at that time.
- To start the simulation, click the yellow ball in the lower right
corner.
.
* World with Mover and Path PROTO ............................................................
..FBM
World with one function.....................................files
used for the world
..FBM
World with three functions...............................files
used for the world
- World Description: This world simulates Functional Block Mode(FBM)
with a mover .
The input transparency value 0.9 is fed into the first function when
.
mover arrives at the machine. It is same as the World with Functional
.
Block Model above except that a mover has been added to the world .
It utilizes the MFACTORY and PATH
PROTOs which generates .
a mover and specifies the moving path of the mover.
.
- To start the simulation, click the green button on the lower middle
part of the screen. .
* Brief Descriptions of............................
MFACTORY PROTO PATH
PROTO
* All of the above Tutorial Worlds in a zip file .......................... tutorial.zip