Titania X3D Editor

It starts with you!

Titania v3.0.4

It starts with you!

X3D Reference

TextureTransform

TextureTransform

TextureTransform shifts 2D texture coordinates for positioning, orienting and scaling image textures on geometry.

The TextureTransform node belongs to the Texturing component and its container field is textureTransform. It is available since X3D version 3.0 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFVec2f [in, out] translation 0 0 (-∞,∞)

Lateral/vertical shift in 2D (s,t) texture coordinates (opposite effect appears on geometry).

SFFloat [in, out] rotation (-∞,∞)

Single rotation angle of texture about center (opposite effect appears on geometry).

Warning

Use a single radian angle value, not a 4-tuple Rotation.

SFVec2f [in, out] scale 1 1 (-∞,∞)

Non-uniform planar scaling of texture about center (opposite effect appears on geometry).

SFVec2f [in, out] center 0 0 (-∞,∞)

Center point in 2D (s,t) texture coordinates for rotation and scaling.

Description

Hints

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

Warning

  • Resulting visible effects appear reversed because image changes occur before mapping to geometry.

Browser Compatibility

Titania X_ITE
yes yes

External Links