User`s guide
Play Animation Files
4-31
Play Animation Files
In this section...
“Play VRML Animation Files” on page 4-31
“Play AVI Animation Files” on page 4-32
Play VRML Animation Files
You can view VRML animation files using one of these approaches:
• Open the 3D Animation Player from the MATLAB Toolstrip.
To open the 3D Animation Player from the MATLAB Toolstrip, in the Apps tab, in
the Simulation Graphics and Reporting section, click 3D Animation Player.
Select or specify an a VRML animation file.
• From the operating system, locate and double-click the VRML animation file
Double-click the VRML file. A VRML-enabled Web browser opens with the animation
running. To view the resulting animation file, you must have a VRML-enabled Web
browser installed on your system.
• Use vrplay(filename), where filename is the name of your VRML file. This opens
the 3D Animation Player and your file. Using the player, you can control the playback
of your file.
For example, play the animation file based on the vr_octavia example by running
vrplay('octavia_scene_anim.wrl').
vrplay works only with VRML animation files created using the Simulink 3D
Animation VRML recording functionality.
• In the Current Folder pane of MATLAB, double-click the VRML animation file and
from the context menu, select Run.
• At the MATLAB command line, use vrview.
A fourth option is to use the MATLAB command vrview. For example, enter:
w=vrview('vrplanets_anim_1.wrl');
set(w,'TimeSource','freerun');