SoGLRenderState

InventorModule
genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def
keywords vertex, fragment, geometry, shader

Purpose

This low-level module allows to manually change OpenGL state in the Open Inventor scene. You should only use it if you know what you are doing, since the manual change of GL state is not known to Open Inventor and can have strange side effects.

The module is a bit unusual since by default, all fields are set to ‘ignored’ state and have no effect on the scene. To enable the functionality of a field, use the field’s context menu and disable Set Open Inventor Ignore Flag.

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

attribSaveMode: Enum Point Sprites: Bool
Blend Mode: Enum Poly Back Mode: Enum
Blending: Bool Poly Front Mode: Enum
Cull Mode: Enum Write Mask Depth: Bool
Depth Enable: Bool  
Depth Function: Enum  
Line Smooth: Bool  
Line Width: Float  

Visible Fields

Cull Mode

name: cullMode, type: Enum, default: BACK

Allows to select the cull mode.

Values:

Title Name
None NONE
Back BACK
Front FRONT
Front And Back FRONT_AND_BACK

Depth Enable

name: depthEnable, type: Bool, default: TRUE

Enable/disable the depth buffer.

Depth Function

name: depthFunction, type: Enum, default: LESS

Select the depth compare function.

Values:

Title Name
Never NEVER
Less LESS
Equal EQUAL
Less Equal LESS_EQUAL
Greater GREATER
Not Equal NOT_EQUAL
Greater Equal GREATER_EQUAL
Always ALWAYS

Write Mask Depth

name: writeMaskDepth, type: Bool, default: TRUE

Enable/disable writing to the depth buffer.

Poly Front Mode

name: polyFrontMode, type: Enum, default: FILL

Select the draw style of the front side of polygons.

Values:

Title Name
Points POINTS
Lines LINES
Fill FILL

Poly Back Mode

name: polyBackMode, type: Enum, default: FILL

Select the draw style of the back side of polygons.

Values:

Title Name
Points POINTS
Lines LINES
Fill FILL

Line Width

name: lineWidth, type: Float, default: 1

Specifies the line width.

Line Smooth

name: lineSmooth, type: Bool, default: FALSE

Specifies if line smoothing should be used. NOTE: Typically you should enable Blending as well, otherwise the line smoothing will not work correctly, since it requires alpha blending.

Point Sprites

name: pointSprites, type: Bool, default: FALSE

Enables point sprite mode for GL_POINTS.

Blending

name: blending, type: Bool, default: FALSE

Enables/disables blending. This overrides the blending settings of all following Inventor nodes, the blending will not be changed according to the transparency in the colors of shapes any more.

Blend Mode

name: blendMode, type: Enum, default: BLEND_BLEND

Selects the blend mode that should be used if blending is enabled.

Values:

Title Name
Replace BLEND_REPLACE
Add BLEND_ADD
Blend BLEND_BLEND
Premultiplied Blend BLEND_PREMULTIPLIED_BLEND

Hidden Fields

attribSaveMode

name: attribSaveMode, type: Enum, default: PUSH

Values:

Title Name
Push PUSH
Pop POP