User`s guide
1 Getting Started
1-32
worlds that are associated with Simulink models, where scene time corresponds directly
to the Simulink time.
The scene time can represent any independent quantity along which you want to animate
the computed solution.
This is a step-by-step example. Shown are the following features:
• Recording 2-D offline animations using the MATLAB interface
• Applying the color palette to visualize distributed parameters across an object shape
• Animating a scene
• Playing the created 2-D animation file using the system AVI player
At the end of this example, the resulting file vrheat_anim.avi remains in the working
folder for later use.
Rotating Membrane with MATLAB Graphical Interface Example (vrmemb)
The vrmemb example shows how to use a 3-D graphic object generated from the MATLAB
environment with the Simulink 3D Animation product. The membrane was generated
by the logo function and saved in the VRML format using the standard vrml function.
You can save all Handle Graphics
®
objects this way and use them with the Simulink 3D
Animation software as components of associated virtual worlds.
After starting the example, you see a control panel with two sliders and three check
boxes. Use the sliders to rotate and zoom the membrane while you use the check boxes to
determine the axis to rotate around.
In the VRML scene, notice the text object. It is a child of the VRML Billboard node. You
can configure this node so that its local z-axis turns to point to the viewer at all times.
This can be useful for modeling virtual control panels and head-up displays (HUDs).
Terrain Visualization Example (vrterrain_simple)
This example illustrates converting available Digital Elevation Models into the VRML
format, for use in virtual reality scenes.
As a source of terrain data, the South San Francisco DEM model (included in the
Mapping Toolbox™ software) has been used. A simple Boeing
®
747
®
model is included in
the scene to show the technique of creating virtual worlds from several sources on-the-fly.