PostEffectRenderer

MacroModule
genre View3D
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition viewers.def
keywords antialiasing, transparency

Purpose

The PostEffectRenderer offers a typical configuration of the SoPostEffectRenderer, like View2D does for SoView2D.

It provides rendering of opaque,transparent and additional geometries with anti-aliasing. The additional geometry is typically used for Volume Rendering on top of opaque geometry.

Usage

Enabled the inputs that you need and connect the geometry scenes to it.

Input Fields

opaqueGeometry

name: opaqueGeometry, type: SoNode

Enables the main opaque geometry input. The effects are applied to this rendering, except for the anti-aliasing which is applied to all inputs.

effects (hidden)

name: effects, type: SoNode

This enables adding additional effects to the rendering. Have a look at the GLSL Post-Processing Effect Framework to see when effects are available.

transparentGeometry (hidden)

name: transparentGeometry, type: SoNode

This input offers the correct rendering of transparent geometry, using depth peeling or blended average rendering. Effects are not applied to this input, except for the anti-aliasing.

additionalGeometry (hidden)

name: additionalGeometry, type: SoNode

This input is typically used to overlay Volume Rendering (using SoGVRVolumeRenderer) onto the opaque and transparent rendering.

This additional scene is rendered on top of the opaque + transparent inputs, no effects are applied except for anti-aliasing.

lateEffects (hidden)

name: lateEffects, type: SoNode

These late effects are applied after all geometry is rendered, but before the anti-aliasing. Have a look at the GLSL Post-Processing Effect Framework to see when effects are available.

Output Fields

outScene

name: outScene, type: SoNode

The scene that can be placed into a viewer.

Parameter Fields

Field Index

Ambient Occlusion: Bool End: Color
Antialiasing: Enum Layers: Integer
Background: Bool Mode: Enum
Enable Additional Geometry: Bool Start: Color
Enable Effects: Bool  
Enable Late Effects: Bool  
Enable Opaque Geometry: Bool  
Enable Transparent Geometry: Bool  

Visible Fields

Enable Opaque Geometry

name: enableOpaqueGeometry, type: Bool, default: TRUE

Enable the opaque input geometry. The effects are applied to this geometry.

Enable Transparent Geometry

name: enableTransparentGeometry, type: Bool, default: FALSE

Enabled rendering of the transparent input geometry using depth peeling or blended average.

Enable Additional Geometry

name: enableAdditionalGeometry, type: Bool, default: FALSE

Enable Effects

name: enableEffects, type: Bool, default: FALSE

Enables additional input effects, see effects.

Enable Late Effects

name: enableLateEffects, type: Bool, default: FALSE

Enables late effects, see lateEffects.

Mode

name: transparencyMode, type: Enum, default: DualDepthPeeling

Choses the transparency mode.

Values:

Title Name Description
Dual Depth Peeling DualDepthPeeling Dual depth peeling render transparencies in the correct order, peeling Layers / 2 from the front and from the back.
Depth Peeling DepthPeeling Depth peeling renders transparencies in the correct order, peeling Layers from the front.
Blended Average BlendedAverage Blended average offers a fast transparency rendering mode, see SoPostEffectTransparentGeometry for details.
Linked List LinkedList  
KBuffer KBuffer  

Layers

name: transparencyLayers, type: Integer, default: 8, minimum: 1, maximum: 64

The number of layers, used when depth peeling is enabled.

Antialiasing

name: antiAliasing, type: Enum, default: FXAA

The anti-aliasing mode that is chosen. If anti-aliasing is enabled, enabling sample buffers/MSAA on the viewers or remote rendering module is not needed, since the anti-aliasing is done as a post effect. For details, have a look at the SoPostEffectAntiAliasing module.

Values:

Title Name
Off Off
FXAA FXAA
DLAA DLAA
Super Sampling2x2 SuperSampling2x2

Background

name: enableBackground, type: Bool, default: TRUE

Enables rendering of a background gradient.

Ambient Occlusion

name: enableAmbientOcclusion, type: Bool, default: FALSE

Enables rendering of screen space ambient occlusion. For details, see SoPostEffectAmbientOcclusion.

Start

name: backgroundStartColor, type: Color, default: 0.39215686917305 0.39215686917305 0.39215686917305

The start color of the background gradient.

End

name: backgroundEndColor, type: Color, default: 1 1 1

The end color of the background gradient.