class
TangentCalculator
TangentCalculator calculates tangent vectors for geometry data objects. One corner field of texture coordinates must exist, as well as normals. The tangents are placed into two corner fields called "Tangents" and "Bitangents". If any of these fields already exists, it is replaced by the new field.
Properties
Property | Description |
---|---|
InvertV | Inverts the V component of the texcoords used for tangent calculation. This essentially switches between right- and lefthanded, i.e. TangentCalculatorType = OrthonormalRightHanded and InvertV = true generates equivalent tangents to TangentCalculatorType = OrthonormalLeftHanded. |
Name | The name of the TangentCalculator object. (Inherited from Object) |
TangentCalculatorType | Sets/Gets the tangent calculator type, types listed in TangentSpaceMethod. |
TexCoordsSetId | The TexCoords field id to use for the tangent calculation. If set to -1, all texture coordinates will get corresponding tangent fields. |
Methods
Method | Description |
---|---|
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
CalculateTangents | Calculates the tangents of a geometry data object. |
CalculateTangentsForNodeHierarchy | Calculates the tangents of a tree of scene nodes (only the geometry nodes of course). |
CalculateTangentsOnScene | Calculates the tangents on all geometries in a scene. |
GetClass | Get the name of the TangentCalculator class. (Inherited from Object) |
IsA | Returns true if TangentCalculator is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the TangentCalculator object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the TangentCalculator object is valid. (Inherited from Object) |
NonNull | Returns true if the TangentCalculator object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the TangentCalculator object to the log. (Inherited from Object) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
Static methods
Method | Description |
---|---|
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spTangentCalculator, and if this is the case, returns the object cast into spTangentCalculator. (Inherited from Object) |
Properties details
InvertV
Inverts the V component of the texcoords used for tangent calculation. This essentially switches between right- and lefthanded, i.e. TangentCalculatorType = OrthonormalRightHanded and InvertV = true generates equivalent tangents to TangentCalculatorType = OrthonormalLeftHanded.
Name
The name of the TangentCalculator object. (Inherited from Object)
TangentCalculatorType
Sets/Gets the tangent calculator type, types listed in TangentSpaceMethod.
TexCoordsSetId
The TexCoords field id to use for the tangent calculation. If set to -1, all texture coordinates will get corresponding tangent fields.
Methods details
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
CalculateTangents
Calculates the tangents of a geometry data object.
CalculateTangentsForNodeHierarchy
Calculates the tangents of a tree of scene nodes (only the geometry nodes of course).
CalculateTangentsOnScene
Calculates the tangents on all geometries in a scene.
GetClass
Get the name of the TangentCalculator class. (Inherited from Object)
IsA
Returns true if TangentCalculator is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull
Returns true if the TangentCalculator object is invalid. (Inherited from Object)
IsSameObjectAs
Returns true if the TangentCalculator object is valid. (Inherited from Object)
NonNull
Returns true if the TangentCalculator object is valid. (Inherited from Object)
PrintInfo
Prints the content/info of the TangentCalculator object to the log. (Inherited from Object)
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spTangentCalculator, and if this is the case, returns the object cast into spTangentCalculator. (Inherited from Object)