| Contents | Index |
| On this page… |
|---|
Differences Between the Default and Legacy Viewer Differences When Setting the DefaultViewer Property to 'internalv4' |
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.
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,
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.
Change the default viewer to the legacy viewer by typing
vrsetpref('DefaultViewer','internalv4') The legacy viewer becomes the default viewer.
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') The legacy viewer has the functionality and appearance of the default Simulink 3D Animation viewer:
In the legacy viewer, you cannot dock the viewer window in the MATLAB Command Window.
In the legacy viewer, you cannot right-click in the viewer window to display a context menu that contains the viewer commands.
In the legacy viewer, you cannot combine multiple figures in several tiles of a MATLAB figure.
The legacy and default viewer have minor visual differences, such as:
In the legacy viewer, circles denote selected menu command options. In the default viewer, checks denote selected menu command options.
In the legacy viewer, the status bar has no border. In the default viewer, the status bar has a border.
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.
![]() | blaxxun Contact VRML Plug-In | Simulink 3D Animation Stand-Alone Viewer | ![]() |

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 |