SoTexture2Transform¶
- InventorModule¶
genre
author
package
definition
Purpose¶
The node SoTexture2Transform defines a 2D transformation applied to texture coordinates, affecting how textures are applied to the surfaces of subsequent shapes.
The transformation consists of (in order) a non-uniform scale about an arbitrary center point, a rotation about that same point, and a translation.
Note: While the transformations can be thought of as being applied in that order, the GL matrices are actually premultiplied in the opposite order. Therefore, the operations are listed in reverse order throughout this reference page.
This allows the user to change the size and position of the textures on objects.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Visible Fields¶
Translation¶
- name: translation, type: Vector2, default: 0 0¶
Sets the translation in S and T.
Rotation¶
- name: rotation, type: Float, default: 0¶
Sets the counterclockwise rotation of the coordinate space in radians. This results in a clockwise rotation of the texture on the object.
Scale Factor¶
- name: scaleFactor, type: Vector2, default: 1 1¶
Sets the scaling factors in S and T.
Center¶
- name: center, type: Vector2, default: 0 0¶
Sets the center point used for scaling and rotation.