Class SoTextureCoordinateObject

  • All Implemented Interfaces:
    SafeDisposable

    public class SoTextureCoordinateObject
    extends SoTextureCoordinateFunction
    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:
    SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTextureCoordinatePlane, SoTextureCoordinateEnvironment
    • Field Detail

      • factorS

        public final SoSFVec4f factorS
        Factor applied to generate the coordinate S.
      • factorT

        public final SoSFVec4f factorT
        Factor applied to generate the coordinate T.
      • factorR

        public final SoSFVec4f factorR
        Factor applied to generate the coordinate R.
      • factorQ

        public final SoSFVec4f factorQ
        Factor applied to generate the coordinate Q.
    • Constructor Detail

      • SoTextureCoordinateObject

        public SoTextureCoordinateObject()
        Creates a texture function node with default settings.