Package com.openinventor.inventor.nodes
Class SoTextureCoordinateObject
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoTextureCoordinateFunction
com.openinventor.inventor.nodes.SoTextureCoordinateObject
- All Implemented Interfaces:
SafeDisposable
Node that specifies texture coordinates which are a linear combination of the object coordinates of the vertex.
This node creates texture coordinates which are a linear combination of the object coordinates of the vertex (xo, yo, zo, wo). A factor can be defined for each component of the texture coordinate (S, T, R, and Q). The generated texture coordinate (S, R, T) at each vertex is:
S = factorS[0] * xo + factorS[1]* yo + factorS[2] * zo + factorS[3] * wo
R = factorR[0] * xo + factorR[1]* yo + factorR[2] * zo + factorR[3] * wo
T = factorT[0] * xo + factorT[1]* yo + factorT[2] * zo + factorT[3] * wo
wo usually equals 1.
File format/default:
TextureCoordinateObject {
factorS | 1 0 0 0 |
factorT | 0 1 0 0 |
factorR | 0 0 1 0 |
factorQ | 0 0 0 1 |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoRayPickAction
Sets the current texture function in the state.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFVec4f
Factor applied to generate the coordinate Q.final SoSFVec4f
Factor applied to generate the coordinate R.final SoSFVec4f
Factor applied to generate the coordinate S.final SoSFVec4f
Factor applied to generate the coordinate T.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a texture function node with default settings. -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
factorS
Factor applied to generate the coordinate S. -
factorT
Factor applied to generate the coordinate T. -
factorR
Factor applied to generate the coordinate R. -
factorQ
Factor applied to generate the coordinate Q.
-
-
Constructor Details
-
SoTextureCoordinateObject
public SoTextureCoordinateObject()Creates a texture function node with default settings.
-