instantreality 1.0

Component:
Texturing
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

TextureTransform2D (Standard name: TextureTransform)

TextureTransform shifts 2D texture coordinates to position, orient and scale image patches Visible effects appear reversed because image changes occur before mapping to geometry Order: translation, rotation about center, non-uniform scale about center. Hint: insert Shape and Appearance nodes before adding TextureTransform.

Inheritance

Code

XML encoding
<TextureTransform2D translation='0 0'
center='0 0'
rotation='0'
scale='1 1'
useViewing='FALSE'
logFeature=''
 />
Classic encoding
TextureTransform2D {
	translation 0 0
	center 0 0
	rotation 0
	scale 1 1
	useViewing FALSE
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFVec2f translation SFVec2f inputOutput 0 0 Lateral/vertical shift in 2D (s,t) texture coordinates (opposite effect appears on geometry).
SFVec2f center SFVec2f inputOutput 0 0 center point in 2D (s,t) texture coordinates for rotation and scaling.
SFFloat rotation SFFloat inputOutput 0 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 scale SFVec2f inputOutput 1 1 Non-uniform planar scaling of texture about center (opposite effect appears on geometry).
SFBool useViewing SFBool inputOutput FALSE If true the rotational part of the view matrix is used instead.
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