Workspace 6.21.5
WSGLOffscreenRender

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.

  • Default label: "WSGL off-screen render"
  • Member of plug-in: Rendering
  • Catalogue path: Rendering
Inputs:
WidthintThe width of the output image in pixels
HeightintThe height of the output image in pixels
SettingsCSIRO::Rendering::RenderSettingsThe settings to use for the renderer, such as antialiasing or depth-peeling.
CamerasArrayCSIRO::Rendering::CameraThe 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.
SceneCSIRO::Rendering::SceneThe Scene to render. Must contain at least one Camera object in order to be rendered.
Background colorDeprecatedQColor

"Background color" is deprecated. Use the "Settings" input instead.

Depth peeling enabledDeprecatedbool

"Depth peeling enabled" is deprecated. Use the "Settings" input instead.

Number of depth layersDeprecatedint

"Number of depth layers" is deprecated. Use the "Settings" input instead.

Enable antialiasingDeprecatedbool

"Enable antialiasing" is deprecated. Use the "Settings" input instead.

Number of samplesDeprecatedint

"Number of samples" is deprecated. Use the "Settings" input instead.

Point sizeDeprecateddouble

"Point size" is deprecated. Use the "Settings" input instead.

Line widthDeprecateddouble

"Line width" is deprecated. Use the "Settings" input instead.

Enable ambient occlusionDeprecatedbool

"Enable ambient occlusion" is deprecated. Use the "Settings" input instead.

Number of AO samplesDeprecatedint

"Number of AO samples" is deprecated. Use the "Settings" input instead.

AO sample lengthDeprecateddouble

"AO sample length" is deprecated. Use the "Settings" input instead.

AO strengthDeprecateddouble

"AO strength" is deprecated. Use the "Settings" input instead.

AO attenuationDeprecateddouble

"AO attenuation" is deprecated. Use the "Settings" input instead.

Outputs:
ImageQImageIf 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 imagesCSIRO::DataExecution::ObjectArray

Contains all images that have been