Main Content

Navigate Through Viewpoints

You can navigate through viewpoints using the menu bar, toolbar, navigation panel, or keyboard shortcut keys. These navigation methods are inactive if the author has specified no or only one viewpoint in the virtual world.

  • From the menu bar, use the Viewpoints menu to move between viewpoints. Use the Previous Viewpoint and Next Viewpoint options to move up and down the list of existing viewpoints sequentially. To move focus to a particular viewpoint, choose a viewpoint from the list of viewpoints.

  • From the toolbar, use the drop-down list of viewpoints to select a particular viewpoint.

  • From the navigation panel, use the Previous Viewpoint and Next Viewpoint controls to move up and down the list of existing viewpoints sequentially.

  • From the keyboard, press Page Up and Page Down.

To reset a camera to the initial position of the current viewpoint, use one of the methods listed in Reset Viewpoints. Resetting the viewpoint is useful to reorient yourself when you have been moving about the scene.

This topic illustrates viewpoints using the vrplanets example.

  1. Select a Simulink® 3D Animation™ example and type that example name in the MATLAB® command window. For example:

    vrplanets
    

    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. From the menu bar, select the Viewpoints menu.

    A menu of the viewpoint options is displayed. Included is a list of the existing viewpoints.

  3. To see the list of existing viewpoints from the toolbar, select the drop-down list on the leftmost side of the toolbar. The status bar at the bottom of the viewer displays the current viewpoint.

When you add new viewpoints to the world, these lists are updated to reflect the new viewpoints.

The current viewpoint is also displayed in the left pane of the status bar.

You manage and navigate through viewpoints from the menu bar, toolbar, navigation panel, and keyboard. In particular, you can

  • Navigate to a previous or next viewpoint

  • Return to the initial position of the current viewpoint

  • Go to the default viewpoint

  • Create and remove viewpoints

  • Navigate to an existing viewpoint

Related Examples

More About