| genre | Visualization |
| status | stable |
| author | Felix Ritter |
| package | MeVisLab/Standard |
| dll | MLOffscreenRender |
| definition | MLOffscreenRenderer.def |
| see also | SoFramebufferRenderer, SoFramebufferTexture |
| keywords | Inventor, offscreen, rendering, fast, image |
The module OffscreenRenderer renders an Open Inventor scene to an ML image.
In contrast to the Viewer modules (e.g. SoExaminerViewer), the render area is not visible and may be much larger than the physical screen space (e.g. 3000x3000 pixel depending on the graphics card capabilities).
Just like any other OpenGL renderer the OffscreenRender module requires a virtual camera and at least one light source in the scene.
Have a look at the example network.
Internally, the OffscreenRender uses OpenGL p-buffers to render the scene.
It is therefore quite fast, but the transfer of the frame buffer's content to the ML image highly depends on the OpenGL implementation, which may be quite slow for large images.
| Background Color: Color |
| Buffer Type: Enum |
| Size: Vector2 |
| Supported: Bool |
| Transparency: Enum |
| Type: Enum |
| Update: Trigger |
| Use stencil: Bool |
Defines the transparency to be used during rendering the scene graph.
Values:
| Title | Name |
|---|---|
| Screen Door | SCREEN_DOOR |
| Add | ADD |
| Delayed Add | DELAYED_ADD |
| Sorted Object Add | SORTED_OBJECT_ADD |
| Blend | BLEND |
| Delayed Blend | DELAYED_BLEND |
| Sorted Object Blend | SORTED_OBJECT_BLEND |
Defines the type of ML output image (the C-dimension).
A change to this parameter will result in a new OpenGL p-buffer.
Values:
| Title | Name |
|---|---|
| Rgb | RGB |
| Rgba | RGBA |
| Rgba Float | RGBA_FLOAT |
Defines the used buffer type.
Values:
| Title | Name |
|---|---|
| Auto | AUTO |
| Pixel Buffer | PIXEL_BUFFER |
Shows whether the hardware supports p-buffers.
If checked, the offscreen renderer uses a p-buffer with a stencil buffer.
This is needed for e.g. SoSilhouette.