SoGVRShaderParameterDirection

InventorModule
status stable
author Florian Link
package MeVisLab/Standard
dll SoGVR
definition SoGVRShaderPipeline.def
see also SoGVRVolumeRenderer
keywords GVR, shader, pipeline

Purpose

The SoGVRShaderParameterDirection module adds a plane shader parameter (aka uniform) to the scene. Planes are transformed using the inverse-transposed of the transformation matrix to preserve their direction in non-uniform scaled transforms.

Usage

The direction is specified in either world or eye (aka camera) coordinates. It is available in the GVR shader and can be used in any SoGVRShaderFunction.

The parameter is available in various coordinate systems, which are appended as suffixes to its Name.

suffix coordinate system
_eye eye/camera coordinates
_world world coordinates
_voxel voxel coordinates
_scaledVoxel scaled voxel coordinates (voxel coordinates multiplied by voxel size)

Windows

Default Panel

../../../Modules/Inventor/SoGVR/mhelp/Images/Screenshots/SoGVRShaderParameterDirection._default.png

Output Fields

self

name: self, type: SoNode

Place the output into any OpenInventor scene in front of a SoGVRVolumeRenderer.

Parameter Fields

Visible Fields

Coordinate System

name: coordinateSystem, type: Enum, default: WorldCoordinates

Defines the source coordinate system in which the Plane is given.

Values:

Title Name Description
World Coordinates WorldCoordinates World coordinates
Eye Coordinates EyeCoordinates Eye/Camera coordinate system

Enabled

name: enabled, type: Bool, default: TRUE

Enables the module.

Name

name: name, type: String

Defines the base name of the parameter in the shader, it becomes available in the SoGVRShaderFunction via name_eye, name_world, name_voxel and name_scaledVoxel.

Plane

name: plane, type: Plane, default: 1 0 0 0

Specifies the plane.