VR To Video
(To be removed) Write data from Simulink model to virtual world (video output port enabled)
VR To Video will be removed in a future release. For more information, see Version History.
Libraries:
Simulink 3D Animation
Description
The VR to Video block is equivalent to the VR Sink block, except that its Show video output port is selected by default.
To open the Block Parameters dialog box, double-click the block.
See the VR Sink block for details.
Ports
Input
Input 1 — Input signal
real scalar | real vector
Input signal to drive the virtual reality visualization of nodes selected in the Virtual World Tree.
Data Types: double
Output
Output 1 — Output video stream
3-element vector of video signal dimensions
Use the output port to access the RGB video stream of the VR signal input.
Data Types: double
Parameters
Source file — File name specifying virtual world that connects to block
string scalar | character vector
By default, the full path to the associated virtual world 3D file appears in this text box. If you enter only the file name in this box, the software assumes that the virtual world 3D file resides in the same folder as the model file. You can specify a VRML file or an X3D file.
Click New to open an empty default virtual world editor. When you either enter a source file name or use the Browse button, the New button becomes an Edit button.
Click Edit to launch the default virtual world editor with the source file open.
Click View to view the world in the Simulink® 3D Animation™ Viewer or a Web browser.
Click Reload to reload the world after you change it.
Open Viewer automatically — Display virtual world on model load
off | on
Enable this parameter to display the virtual world after loading the Simulink model.
Allow viewing from the Internet — View virtual world over network
off (default) | on
Enable this parameter to make the virtual world accessible for viewing on a client
computer. If you do not select this check box, then the world is visible only on the
host computer. This parameter is equivalent to the RemoteView
property of a vrworld
object.
Description — Virtual reality object description
string scalar | character vector
The description is displayed in all virtual reality object listings, in the title bar of the Simulink
3D Animation Viewer, and in the list of virtual worlds on the Simulink
3D Animation HTML page. This parameter is equivalent to the Description
property of a vrworld
object.
Show video output port — Output VR signal to video
on (default) | off
Enables a port to output an RGB video stream for further 2D video processing.
Video output signal dimensions — Specify video output size
[200 320]
(default) | 2-element vector
Specify the dimensions ([height width]) of the video output signal in pixels.
Show node types — Display node types in virtual world tree
off (default) | on
Enable this parameter to show node types in the virtual world tree.
Show field types — Display field types in virtual world tree
off (default) | on
Enable this parameter to show field types in the virtual scene tree.
Version History
Introduced in R2007bR2023b: To be removed
The VR To Video
will be removed in a future
release. Instead, use sim3d
classes and Simulation 3D blocks to
interface MATLAB® and Simulink with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)