instantreality 1.0

Component:
Texturing
Status:
fully implemented
Structure type:
concrete
Standard:
X3D3.0

TextureCoordinateGenerator

TextureCoordinateGenerator computes 2D (s,t) texture-coordinate points, used by vertex-based geometry (ElevationGrid, IndexedFaceSet) to map textures to vertices (and patches to polygons). Hint: add Shape and then polgyonal/planar geometry before adding TextureCoordinateGenerator.

Inheritance

Code

XML encoding
<TextureCoordinateGenerator mode='SPHERE'
parameter=''
logFeature=''
 />
Classic encoding
TextureCoordinateGenerator {
	mode "SPHERE"
	parameter []
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
SFString mode SFString inputOutput SPHERE [SPHERE, CAMERASPACENORMAL, CAMERASPACEPOSITION, CAMERASPACEREFLECTIONVECTOR, SPHERE-LOCAL, COORD, COORD-EYE, NOISE, NOISE-EYE, SPHERE-REFLECT, SPHERE-REFLECT-LOCAL, TANGENT, PLANE] Texture generation mode, e.g. sphere or tangent.
MFFloat parameter MFFloat inputOutput Optional mode parameters (for e.g. tangent this could be [0,1,2], which means src texCoord (used for calculation) is in slot 0, and calculated tangents and binormals shall be in texCoord slots 1 and 2).