Post

TextureCoordinateGenerator

Overview

TextureCoordinateGenerator computes 2D (s,t) texture-coordinate points, used by vertex-based geometry nodes (such as IndexedFaceSet or ElevationGrid) to map textures to vertices (and patches to NURBS surfaces).

The TextureCoordinateGenerator node belongs to the Texturing component and requires at least level 2, its default container field is texCoord. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
4
5
+ X3DNode
  + X3DGeometricPropertyNode
    + X3DTextureCoordinateNode
      + X3DSingleTextureCoordinateNode
        + TextureCoordinateGenerator

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

SFString [in, out] mode “SPHERE” [“SPHERE”|”CAMERASPACENORMAL”|”CAMERASPACEPOSITION”|”CAMERASPACEREFLECTIONVECTOR”|”SPHERE-LOCAL”|”COORD”|”COORD-EYE”|”NOISE”|”NOISE-EYE”|”SPHERE-REFLECT”|”SPHERE-REFLECT-LOCAL”]

Parameter field defines the algorithm used to compute texture coordinates.

Hint

Warning

  • Do not wrap extra quotation marks around these SFString enumeration values, since “quotation” “marks” are only used for MFString values.

MFFloat [in, out] parameter [ ]

parameter array contains scale and translation (x y z) values for Perlin NOISE mode, parameter[0] contains index of refraction for SPHERE-REFLECT mode, parameter[0] contains index of refraction and parameter[1 to 3] contains the eye point in local coordinates for SPHERE-REFLECT-LOCAL mode.

Advice

Hints

See Also

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