SoPickableShadowCast¶
-
InventorModule
¶ genre Visualization
author Felix Ritter
package FMEwork/ReleaseMeVis
dll SoShadow
definition SoShadow.def see also SoShadowCast
,SoShadowMaterial
,SoShadowSwitch
,SoShadowAwareTransformerManip
keywords shadow
,picking
,viewer
,illustration
,visualization
Purpose¶
To improve the recognition of objects, the SoPickableShadowCast module renders a drop shadow including shadow plane of a subgraph connected to this module. This shadow plane is scaled such that all objects cast a shadow on it whereby its orientation remains fixed with regard to the observer. The SoPickableShadowCast module enables picking on shadows. If you don’t need picking of shadow, use the SoShadowCast module.
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.
Usage¶
Connect the SoPickableShadowCast module to the scenegraph and connect a subgraph to this module.
Details¶
The subgraph is rendered twice, once more for the shadow projection. To determine whether an object has been hit in the shadow or in the normal 3D rendition SoShadowFaceDetail class may be employed (if provided with SDK).
Tips¶
Does only work with polygonal models.
Input Fields¶
Output Fields¶
Parameter Fields¶
Field Index¶
Cast Color : Color |
Light Mode : Enum |
Light Pos : Vector4 |
Plane Angle : Float |
Plane Color : Color |
Projection Plane : Plane |
Render plane : Bool |
Render shadow cast : Bool |
Visible Fields¶
Light Pos¶
-
name:
lightPos
, type:
Vector4
, default:
-1 -1 -1 0
¶ The value of this field is only used if Light Mode is Free and the field is not ignored (it is ignored by default and falls back to Plane mode). The value specifies the position or direction of the light. If the fourth component of the Light Position vector (w) is 0, a directional light source is assumed and the first three components specify the direction of the light. If the fourth component is 1, a shadow for a positional light source is computed.
Light Mode¶
-
name:
lightMode
, type:
Enum
, default:
PLANE
¶ Determines the virtual light source for the shadow projection. In mode Free, the position or direction of light can be passed via the field
Light Pos
. Mode Plane uses a directional light perpendicular to the shadow plane. In mode Camera, directional light is emitted from a direction opposite to the up vector of the virtual camera.
Values:
Title | Name |
---|---|
Free | FREE |
Plane | PLANE |
Camera | CAMERA |
Projection Plane¶
-
name:
projectionPlane
, type:
Plane
, default:
0 1 0 0
¶ Specifies the four components of the plane equation. This field is ignored by default and the plane is aligned according to the virtual camera.
Plane Angle¶
-
name:
planeAngle
, type:
Float
, default:
0.69813168
, minimum:
0
, maximum:
1.57
¶ Determines the rotation of the plane around the side vector of the virtual camera, the tilting of the plane towards the observer.
Cast Color¶
-
name:
castColor
, type:
Color
, default:
0.649999976158142 0.620000004768372 0.509999990463257
¶ Specifies the default color of the drop shadow.
Render shadow cast¶
-
name:
castRender
, type:
Bool
, default:
TRUE
¶ Determines, whether a shadow is rendered onto the shadow plane.