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 vrpend, vrplanets, and vrtut1 examples to illustrate the viewer features:

  1. Select a Simulink® 3D Animation™ example and type that example's name in the MATLAB® Command Window. For example:

    vrpend
    

    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.

  2. 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.

      Note   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 a number of 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:

  • Right-click in the viewer window to display a context menu that contains the viewer commands. 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 Preferences.

Was this topic helpful?