element TextureCoordinateGenerator
diagram x3d-3.0_diagrams/x3d-3.0_p130.png
type extension of X3DTextureCoordinateNode
properties
content complex
children IS MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
elements MultiTextureCoordinate NurbsPatchSurface NurbsTrimmedSurface
groups ColorCoordinateNormalTexCoordContentModel ColorNormalTexCoordContentModel
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

DEF defines a unique ID name for each node, referenceable by other nodes.
USE  xs:IDREF        
appinfo

USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
class  xs:NMTOKENS        
appinfo

The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
mode  textureCoordinateGeneratorModeChoices    SPHERE    
parameter  MFFloat        
containerField  containerFieldChoicesTextureCoordinate    texCoord    
annotation
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Texturing"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
source <xs:element name="TextureCoordinateGenerator">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Texturing"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#TextureCoordinateGenerator"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DTextureCoordinateNode">
       
<xs:attribute name="mode" type="textureCoordinateGeneratorModeChoices" default="SPHERE"/>
       
<xs:attribute name="parameter" type="MFFloat"/>
       
<xs:attribute name="containerField" type="containerFieldChoicesTextureCoordinate" default="texCoord"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute TextureCoordinateGenerator/@mode
type textureCoordinateGeneratorModeChoices
properties
default SPHERE
facets
Kind Value Annotation
enumeration SPHERE
appinfo
Creates texture coordinates for a spherical environment
enumeration CAMERASPACENORMAL
appinfo
Use vertex normal, transformed to camera space, as input texture coordinates
enumeration CAMERASPACEPOSITION
appinfo
Use vertex position, transformed to camera space, as input texture coordinates
enumeration CAMERASPACEREFLECTIONVECTOR
appinfo
Use reflection vector, transformed to camera space, as input texture coordinates
enumeration SPHERE-LOCAL
appinfo
Sphere mapping but in local coordinates
enumeration COORD
appinfo
Use vertex coordinates
enumeration COORD-EYE
appinfo
Use vertex coordinates transformed to camera space
enumeration NOISE
appinfo
Apply Perlin solid noise function on vertex coordinates
enumeration NOISE-EYE
appinfo
Apply Perlin solid noise function on vertex coordinates transformed to camera space
enumeration SPHERE-REFLECT
appinfo
similar to CAMERASPACEREFLECTIONVECTOR with optional index of refraction
enumeration SPHERE-REFLECT-LOCAL
appinfo
Similar to SPHERE-REFLECT transformed to camera space
source <xs:attribute name="mode" type="textureCoordinateGeneratorModeChoices" default="SPHERE"/>

attribute TextureCoordinateGenerator/@parameter
type MFFloat
facets
Kind Value Annotation
whiteSpace collapse
pattern (\s)*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*,?\s*)*
source <xs:attribute name="parameter" type="MFFloat"/>

attribute TextureCoordinateGenerator/@containerField
type containerFieldChoicesTextureCoordinate
properties
default texCoord
facets
Kind Value Annotation
enumeration texCoord
appinfo
parent node is a geometry node
enumeration texCoordRamp
appinfo
parent node is ParticleSystem
source <xs:attribute name="containerField" type="containerFieldChoicesTextureCoordinate" default="texCoord"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy