SoPostEffectEdges¶
- InventorModule¶
author
package
dll
definition
Purpose¶
The SoPostEffectEdges module detects and renders edges as an effect for the SoPostEffectRenderer module.
There are three different modes (field Mode).
SobelDepth calculates the edges using a Sobel filter on the depth values of the depth buffer. It only shows edges based on depth differences, not on inner creases.
RobertsDepthNormal calculates the edges based on the normals and the depth. This shows inner creases.
EmissiveColor calculates the edges using the emissive color buffer. This allows for only rendering edges around objects that are highlighted using the emissive color (see
SoMaterial).
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Enabled¶
- name: enabled, type: Bool, default: TRUE¶
If checked, the effect is enabled.
Edge Color¶
- name: edgeColor, type: Color, default: 0 0 0¶
Sets the color of the edge.
Sampling Distance¶
- name: samplingDistance, type: Float, default: 1, minimum: 1, maximum: 4¶
Sets the sample distance. Default is 1 pixel. Larger sample distances generate bigger edges with less quality.
Normal Angle Threshold¶
- name: normalAngleThreshold, type: Float, default: 35, minimum: 10, maximum: 180¶
Sets the angle at which two normals are considered similar.
Depth Sensitivity¶
- name: depthSensitivity, type: Float, default: 0.40000001, minimum: 0, maximum: 10¶
Sets the sensitivity of the depth comparison.
Exponent¶
- name: exponent, type: Float, default: 1, minimum: 1, maximum: 10¶
Sets the exponent to choose the sensitivity of the Sobel filter.
Blur¶
- name: blur, type: Bool, default: FALSE¶
If checked, the blurring of the calculated edges is enabled.
Blur Kernel Size¶
- name: blurKernelSize, type: Integer, default: 9, minimum: 3¶
Sets the size of the blur kernel.
Mode¶
- name: mode, type: Enum, default: SobelDepth¶
Defines how to detect the edges.
Values:
Title |
Name |
Description |
|---|---|---|
Sobel Depth |
SobelDepth |
Uses a Sobel filter on the depth buffer to detect edges. The |
Roberts Depth Normal |
RobertsDepthNormal |
Uses the depth buffer and normal buffer to detect edges. |
Emissive Color |
EmissiveColor |
Uses the emissive color buffer to detect edges. Requires that emissive colors are used for the objects that should get edges (see |