Virtual Reality Toolbox | ![]() ![]() |
Syntax
view(vrworld_object
) x = view(vrworld_object
) x = view(vrworld_object
,'-internal') x = view(vrworld_object
,'-web')
Arguments
vrworld_object |
Name of a vrworld object representing a virtual world. |
Description
The view
method opens the default VRML viewer on the host computer and loads the virtual world associated with the vrworld object into the viewer window. You specify the default VRML viewer using the DefaultViewer
preference. The virtual world must be opened for you to use this method.
x = view(vrworld_object
) opens the default VRML viewer on the host computer and loads the virtual world associated with the vrworld object into the viewer window. If the Virtual Reality Toolbox viewer is used, view
also returns the vrfigure handle of the viewer window. If a Web browser is used, view
returns an empty array of vrfigure handles.
x = view(vrworld_object
,'-internal') opens the virtual world in the Virtual Reality Toolbox viewer.
x = view(vrworld_object
,'-web') opens the virtual world in the Web browser.
If the virtual world is disabled for viewing (that is, the View
property for the associated vrworld object is set to 'off'
), the view
method does nothing.
Examples
See Also
![]() | vrworld/set | vrnode Object Reference | ![]() |