Workspace 6.21.5
|
Renders a Scene to a QImage using OpenGL. Uses the same underyling technology as the WSGLWidget, so a scene visualised in both will be identical (depending on the selected input settings). The user can configure not only the rendering settings, but which of the Cameras in the Scene is to be the viewpoint of the render.
Inputs: | |||
---|---|---|---|
Width | int | The width of the output image in pixels | |
Height | int | The height of the output image in pixels | |
Settings | CSIRO::Rendering::RenderSettings | The settings to use for the renderer, such as antialiasing or depth-peeling. | |
Cameras | Array | CSIRO::Rendering::Camera | The Cameras to use as the view source in the render. If no cameras are supplied, the operation will render once for each camera in the scene. |
Scene | CSIRO::Rendering::Scene | The Scene to render. Must contain at least one Camera object in order to be rendered. | |
Background color | Deprecated | QColor |
"Background color" is deprecated. Use the "Settings" input instead. |
Depth peeling enabled | Deprecated | bool |
"Depth peeling enabled" is deprecated. Use the "Settings" input instead. |
Number of depth layers | Deprecated | int |
"Number of depth layers" is deprecated. Use the "Settings" input instead. |
Enable antialiasing | Deprecated | bool |
"Enable antialiasing" is deprecated. Use the "Settings" input instead. |
Number of samples | Deprecated | int |
"Number of samples" is deprecated. Use the "Settings" input instead. |
Point size | Deprecated | double |
"Point size" is deprecated. Use the "Settings" input instead. |
Line width | Deprecated | double |
"Line width" is deprecated. Use the "Settings" input instead. |
Enable ambient occlusion | Deprecated | bool |
"Enable ambient occlusion" is deprecated. Use the "Settings" input instead. |
Number of AO samples | Deprecated | int |
"Number of AO samples" is deprecated. Use the "Settings" input instead. |
AO sample length | Deprecated | double |
"AO sample length" is deprecated. Use the "Settings" input instead. |
AO strength | Deprecated | double |
"AO strength" is deprecated. Use the "Settings" input instead. |
AO attenuation | Deprecated | double |
"AO attenuation" is deprecated. Use the "Settings" input instead. |
Outputs: | |||
Image | QImage | If only a single camera is supplied (or only a single camera exists in the scene, this output will contain the rendered result from this camera's point of view. If more than one camera is used for rendering, this output will contain the last rendered image. | |
All images | CSIRO::DataExecution::ObjectArray | Contains all images that have been |