Class SoTextureCoordinate3

All Implemented Interfaces:
SafeDisposable

public class SoTextureCoordinate3 extends SoNode
3D texture coordinate node. This node defines a set of 3D coordinates to be used to map textures to subsequent vertex-based shapes (those derived from SoVertexShape). It replaces the current texture coordinates in the rendering state for the shapes to use.

The current texture coordinate binding (see SoTextureCoordinateBinding) determines how texture coordinates are mapped to vertices of shapes. An alternative to using explicit texture coordinates is to generate them using a function; see SoTextureCoordinateFunction.

Texture coordinates range from 0 to 1 across the texture. The horizontal coordinate, called S, is specified first, then the vertical coordinate, T, and finally the depth coordinate, R.

File format/default:

TextureCoordinate3 {

    point [ ]
    forceSending false
}

Action behavior:

SoGLRenderAction, SoCallbackAction
Sets the current texture coordinates in the state. Sets: SoTextureCoordinate3Element

See Also:
  • Field Details

    • point

      public final SoMFVec3f point
      Texture coordinate points.
    • forceSending

      public final SoSFBool forceSending
      Forces the texture coordinates to be sent to OpenGL even if no texture is bound. Default is false. The default value can be set using the environment variable OIV_FORCE_TEX_COORD_SENDING. See SoPreferences.

      Since:
      Open Inventor 5.0.3

  • Constructor Details

    • SoTextureCoordinate3

      public SoTextureCoordinate3()
      Creates a texture coordinate node with default settings.