Simulink 3D Animation Viewer
What You Can Do with the Viewer
This section provides an overview of the features and controls of the viewer.
This section uses the
vrtut1 examples to illustrate the viewer features:
Select a Simulink® 3D Animation™ example and type the example name in the MATLAB® Command Window. For example:
The Simulink model is displayed. By default, the Simulink 3D Animation viewer for that model is loaded and becomes active. If the viewer is not displayed, double-click the VR Sink block in the Simulink model.
Inspect the viewer window.
The Simulink 3D Animation viewer displays the virtual scene. The top of the viewer contains a menu bar and toolbar. By default, the Simulink 3D Animation viewer displays the virtual scene with a navigation panel at the bottom. These three areas of the viewer give you alternate ways to work with the virtual scene.
The Simulink 3D Animation viewer settings are saved when you save your model file.
Viewer Uses MATLAB Figures
The Simulink 3D Animation software contains a viewer as the default method for viewing virtual worlds. You can use this viewer on any supported operating system. This viewer uses MATLAB figures. It provides several capabilities, including:
Treat the viewer window like a MATLAB figure. This ability enables you to perform MATLAB figure actions such as dock the viewer window in the MATLAB window. For example:
To display a context menu that contains the viewer commands, right-click in the viewer window. For example:
Combine multiple virtual reality viewer figures in several tiles of a MATLAB figure.
Set Viewer Appearance Preferences
You can configure the appearance of the viewer using Simulink 3D Animation preferences. For details, see Figure Appearance Preferences Dialog Box.