Skip to Main Content Skip to Search
Product Documentation

Legacy Simulink 3D Animation Viewer

Introduction

The Simulink 3D Animation viewer has a legacy viewer. This legacy viewer is the former default viewer. For details about the differences between the current viewer and the legacy viewer, see Differences Between the Default and Legacy Viewer.

Starting the Legacy Viewer

By default, you use the default Simulink 3D Animation viewer to visualize virtual worlds. To configure your Simulink 3D Animation software to use the legacy viewer,

  1. Determine your default viewer by typing

    vrgetpref 

    The MATLAB Command Window displays

    ans =
    
                                 DataTypeBool: 'logical'
                                DataTypeInt32: 'double'
                                DataTypeFloat: 'double'
                        DefaultCanvasNavPanel: 'none'
                           DefaultCanvasUnits: 'normalized'
                    DefaultFigureAntialiasing: 'off'
               DefaultFigureCaptureFileFormat: 'tif'
                 DefaultFigureCaptureFileName: '%f_anim_%n.tif'
                       DefaultFigureDeleteFcn: ''         
                        DefaultFigureLighting: 'on'
                  DefaultFigureMaxTextureSize: 'auto'
                        DefaultFigureNavPanel: 'halfbar'
                        DefaultFigureNavZones: 'off'
                        DefaultFigurePosition: [5 92 576 380]
          DefaultFigureRecord2DCompressMethod: 'auto'
         DefaultFigureRecord2DCompressQuality: 75
                DefaultFigureRecord2DFileName: '%f_anim_%n.avi'
                     DefaultFigureRecord2DFPS: 15
                       DefaultFigureStatusBar: 'on'
                        DefaultFigureTextures: 'on'
                         DefaultFigureToolBar: 'on'
                    DefaultFigureTransparency: 'on'
                       DefaultFigureWireframe: 'off'
                                DefaultViewer: 'internal'
                 DefaultWorldRecord3DFileName: '%f_anim_%n.wrl'
                       DefaultWorldRecordMode: 'manual'
                   DefaultWorldRecordInterval: [0 0]
                       DefaultWorldRemoteView: 'off'
                       DefaultWorldTimeSource: 'external'
                                       Editor: [1x60 char]
                                     HttpPort: 8123
                              TransportBuffer: 5
                             TransportTimeout: 20
                                       VrPort: 8124 

    The DefaultViewer property is set to 'internal'. The Simulink 3D Animation viewer is the default viewer for viewing virtual scenes. Any virtual scenes that you open are displayed in the viewer.

  2. Change the default viewer to the legacy viewer by typing

    vrsetpref('DefaultViewer','internalv4') 

    The legacy viewer becomes the default viewer.

  3. At the MATLAB command prompt, type

    vrplanets 

    The Planets demo is loaded and the virtual scene is displayed using the legacy viewer.

    To revert to the original default viewer, type

    vrsetpref('DefaultViewer','internal') 

Differences Between the Default and Legacy Viewer

The legacy viewer has the functionality and appearance of the default Simulink 3D Animation viewer:

The legacy and default viewer have minor visual differences, such as:

Differences When Setting the DefaultViewer Property to 'internalv4'

Setting the DefaultViewer property to 'internalv4' also affects the behavior of the vrplay function. When you create additional vrplay windows using the File > New Window command, the window respects the current setting of the DefaultViewer property. By default, the File > New Window command creates the new player window as a MATLAB figure.

If you set the DefaultViewer property to 'internalv4', the File > New Window command creates the new player window as in previous releases.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS