SoWEMRendererTangents

InventorModule
genre WEMRendering
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoWEM
definition SoWEM.def
see also SoWEMRenderer
keywords visualization, surface

Purpose

The SoWEMRendererTangents calculates per vertex tangents based on the face tangents using the face vertices and the textureS/textureT texture coordinates (PVLs). The tangents are added as a vertex attribute of the following type:

attribute vec3 wemTangent;

The main usage for these tangents in to render normal maps that are defined in tangent space.

Usage

The module needs to be connected to the SoWEMRenderer.inExtensions field.

Tips

The module will not work without textureS/textureT texture coordinates in the WEM. The tangents are averaged at each vertex, the algorithm does not create extra vertice/tangents at colliding faces (it averages tangents regardless of their angle to each other).

Output Fields

self

name: self, type: SoNode