Purpose

The SoShadowSwitch module allows you to have separate scenegraphs for the 3D scene and the cast shadow.

See: Illustrative Shadows: Integrating 3D and 2D Information Displays. Felix Ritter, Henry Sonnet, Knut Hartmann, and Thomas Strothotte. Proceedings of ACM Intelligent User Interfaces 2003, pp. 166-173.

../../../Modules/Inventor/SoShadow/mhelp/Images/ShadowSwitch.png

Usage

Connect the SoShadowSwitch module to the scenegraph and connect two subgraphs to this module. One will be rendered as normal 3D shape geometry, while the other is used to cast the shadow.

Input Fields

child

name: child, type: SoNode

The module has a group input connector to connect two subgraphs. You may connect more subgraphs but only two of them are used.

Output Fields

self

name: self, type: SoNode

The module has one output connector to include the module into the parent scene.

Parameter Fields

Visible Fields

Nonshadow Child

name: nonshadowChild, type: Integer, default: -1

Specifies the 0-based index of the subgraph to be rendered as 3D shapes.

Shadow Child

name: shadowChild, type: Integer, default: -1

Specifies the 0-based index of the subgraph to be rendered as shadow.

Hidden Fields

whichChild

name: whichChild, type: Integer, default: -1