User`s guide
viii Contents
Scheduled 2-D AVI Recording with MATLAB . . . . . . . . . . . 4-25
Record Animations for Unconnected Virtual Worlds . . . . . 4-28
Play Animation Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-31
Play VRML Animation Files . . . . . . . . . . . . . . . . . . . . . . . . 4-31
Play AVI Animation Files . . . . . . . . . . . . . . . . . . . . . . . . . . 4-32
Build Virtual Reality Worlds
5
VRML Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Editors for Virtual Worlds . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Build and Connect a Virtual World . . . . . . . . . . . . . . . . . . . . . 5-7
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Define the Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Add a Simulink 3D Animation Block . . . . . . . . . . . . . . . . . . 5-9
Open a New Virtual World . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Add VRML Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
Link to a Simulink Model . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
VRML Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
VRML Field Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
VRML Data Class Types . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
Simulink 3D Animation Textures . . . . . . . . . . . . . . . . . . . . . 5-28
Add Sound to a Virtual World . . . . . . . . . . . . . . . . . . . . . . . . 5-29
Using CAD Models with the Simulink 3D Animation
Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Import STL and Physical Modeling XML Files Directly into a
VRML Virtual World . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Import VRML Models from CAD Tools . . . . . . . . . . . . . . . . 5-31
CAD Virtual World Modeling . . . . . . . . . . . . . . . . . . . . . . . 5-38
Link to CAD Virtual Worlds . . . . . . . . . . . . . . . . . . . . . . . . 5-41
Import VRML Models from CATIA Software . . . . . . . . . . . . 5-46