SoView2DExtensionSampler¶
- InventorModule¶
genre
author
package
dll
definition
inherits from
keywords
Purpose¶
The SoView2DExtensionSampler module allows for rendering SoView2D extensions to an RGBA texture.
This texture can be given a name and can be rendered/accessed by a SoView2DShaderOverlay.
A typical use case would be to render a SoView2DScene to a texture using this module
and to write a custom SoView2DShaderFunction which modifies the rendering depending
on the content of the texture.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Drawing On¶
- name: drawingOn, type: Bool, default: TRUE¶
Enables/Disables rendering of the scene below the module to the texture.
see also SoView2DExtension.drawingOn
Render On Slab¶
- name: renderOnSlab, type: Bool, default: TRUE¶
If checked, the rendering on slab is enabled.
Overlay Name¶
- name: overlayName, type: String, default: texture¶
Sets the overlay name for usage in
SoView2DShaderOverlay.
Filter Mode¶
- name: filterMode, type: Enum, default: FILTER_LINEAR_POSTCLASS¶
Defines the filter mode that is used when rendering the result texture (e.g. in the
SoView2DShaderOverlay)
Values:
Title |
Name |
|---|---|
Nearest |
FILTER_NEAREST |
Linear Postclass |
FILTER_LINEAR_POSTCLASS |
Blend Mode¶
- name: blendMode, type: Enum, default: BLEND_PREMULTIPLIED_BLEND¶
Defines the blend mode that is used when rendering the result texture (e.g. in the
SoView2DShaderOverlay)
Values:
Title |
Name |
|---|---|
Replace |
BLEND_REPLACE |
Add |
BLEND_ADD |
Screen |
BLEND_SCREEN |
Blend |
BLEND_BLEND |
Premultiplied Blend |
BLEND_PREMULTIPLIED_BLEND |
Maximum |
BLEND_MAXIMUM |
Minimum |
BLEND_MINIMUM |
Reverse Subtract |
BLEND_REVERSE_SUBTRACT |
Subtract |
BLEND_SUBTRACT |
Enable Multi Sampling¶
- name: enableMultiSampling, type: Bool, default: FALSE¶
Enabled multisampling (MSAA) using
Multi Samplingnumber of samples. This can improve the rendering quality/anti-aliasing when using a SoView2DScene and normal Inventor rendering below this module.
Multi Sampling¶
- name: multiSampling, type: Integer, default: 8¶
Number of samples to use if
Enable Multi Samplingis enabled.