SoPostEffectGlow

InventorModule

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

SoRenderers

definition

SoRenderers.def

Purpose

The SoPostEffectGlow module renders a glow effect for the SoPostEffectRenderer module.

By default, it uses the emissive color to render glows. It can also be configured to render glows for bright color buffer areas that are above a given luminance threshold.

Parameter Fields

Field Index

Blend Mode: Enum

Resize Mode: Enum

Blur Iterations: Integer

Sample Distance: Float

Blur Kernel Size: Integer

Scene Glow: Bool

Emissive Glow: Bool

Scene Glow Threshold: Float

emissiveBufferName: String

sceneGlowBufferName: String

Enabled: Bool

Intensity: Float

outputBufferName: String

Visible Fields

Enabled

name: enabled, type: Bool, default: TRUE

If checked, the effect is enabled.

Emissive Glow

name: emissiveGlow, type: Bool, default: TRUE

If checked, glowing via the emissive colors is enabled. See SoMaterial on how to specify an emissive color.

Scene Glow

name: sceneGlow, type: Bool, default: TRUE

If checked, glowing of bright color buffer areas (e.g., bright reflections) is enabled.

Scene Glow Threshold

name: sceneGlowThreshold, type: Float, default: 0.89999998

Sets the luminance threshold that causes glowing. Colors in the color buffer that are above this luminance threshold will glow.

Blur Kernel Size

name: blurKernelSize, type: Integer, default: 32, minimum: 3, maximum: 32

Sets the blur kernel size of the glow.

Sample Distance

name: sampleDistance, type: Float, default: 1, minimum: 1, maximum: 32

Sets the sample distance of the blur. Larger values give a larger blur but will cause lower quality.

Blur Iterations

name: blurIterations, type: Integer, default: 1, minimum: 1, maximum: 32

Sets the number of blur iterations, each with growing sample distance.

Intensity

name: intensity, type: Float, default: 1, minimum: 0, maximum: 5

Sets the intensity of the glow.

Resize Mode

name: resizeMode, type: Enum, default: Average2x2

Defines the downsampling mode for the glow buffer.

Values:

Title

Name

​Average2x2

​Average2x2

​Average3x3

​Average3x3

​Average4x4

​Average4x4

Blend Mode

name: blendMode, type: Enum, default: Screen

Defines the blend mode.

Values:

Title

Name

Description

​Screen

​Screen

​Uses the Screen blend mode, 1 - (1-src) * (1-dest).

​Add

​Add

​Adds the glow. This can cause over-bright images.

Hidden Fields

sceneGlowBufferName

name: sceneGlowBufferName, type: String, default: colorBuffer

outputBufferName

name: outputBufferName, type: String, default: colorBuffer

emissiveBufferName

name: emissiveBufferName, type: String, default: emissiveBuffer