Post

TextureTransformMatrix3D

TextureTransformMatrix3D

Overview

TextureTransformMatrix3D applies a 3D transformation to texture coordinates.

The TextureTransformMatrix3D node belongs to the Texturing3D component and requires at least level 1, its default container field is textureTransform. It is available from X3D version 3.1 or higher.

Hierarchy

1
2
3
4
5
+ X3DNode
  + X3DAppearanceChildNode
    + X3DTextureTransformNode
      + X3DSingleTextureTransformNode
        + TextureTransformMatrix3D

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFString [in, out] mapping “”

The mapping label identifies which texture coordinates and transformations are used to compute texture effects from corresponding geometry on a given material.

Hint

SFMatrix4f [in, out] matrix 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 (-∞,∞)

matrix is a generalized, unfiltered 4x4 transformation matrix to modify texture (opposite effect appears on geometry).

Advice

Hints

  • Order of operations is translation, rotation about center, non-uniform scale about center.
  • Insert Shape and Appearance nodes before adding TextureTransformMatrix3D.
  • Texture mapping

Warnings

  • Resulting visible effects appear reversed because image changes occur before mapping to geometry.
  • Requires X3D profile='Full' or else include <component name='Texturing3D' level='1'/>

See Also

This post is licensed under CC BY 4.0 by the author.