Products & Services Solutions Academia Support User Community Company

Learn more about Simulink 3D Animation   

vrplay - Play VRML animation file

Syntax

vrplay
vrplay(filename)
x=vrplay(filename)

Description

vrplay opens the Virtual Reality animation player GUI that allows you to open and play VRML animation files.

vrplay(filename) opens the Virtual Reality animation player GUI and loads the virtual world filename.

x=vrplay(filename) also returns a Virtual Reality animation player GUI figure handle.

vrplay works only with VRML animation files created using the Simulink 3D Animation VRML recording functionality.

Setting the DefaultViewer property to internalv4 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 implemented 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.

Keyboard Support

The GUI's playback controls can also be accessed from the keyboard.

KeyFunction
F, Page DownFast forward
JJump to time
LLoop
PPlay/pause toggle
SStop
R, Page UpRewind
Right arrow keyStep forward
Left arrow keyStep reverse
Up arrow keyFirst
Down arrow keyLast

Example

To play the animation file based on the vr_octavia demo, run vrplay('octavia_scene_anim.wrl').

See Also

Recording Offline Animations, vrview

  


Related Products & Applications

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

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