Table 6.267 — DRM_Texture_Coordinate

Property

Description

Class

  • <DRM Texture Coordinate>

Superclass

Subclass

  • None.

Definition

An instance of this DRM class is a {s, t} tuple in image space (also known as texture space) used to specify how a texel from the image space is to be mapped to a location in “object” space.

Each MIP level of a 2D <DRM Image> defines an image that has a width and height specified in texels. Regardless of the actual size of the image, the image space is defined by treating the two-dimensional image as a square, defined by the lower-left coordinate of (0,0, 0,0) and the upper-right coordinate of (1,0, 1,0). A <DRM Texture Coordinate> instance is a coordinate within this image space.

A <DRM Texture Coordinate> instance specifies an exact location within a given image space, and this location is mapped to the “object space” location associated with the <DRM Vertex>, <DRM Point>, or <DRM Tack Point> instance of which the <DRM Texture Coordinate> instance is a component. A textured geometric object generally has a <DRM Texture Coordinate> for each vertex of the object, and the surface of the geometric object is 'painted' or 'covered' with the given <DRM Image>, interpolating what part of the <DRM Image> should be displayed where based on the <DRM Texture Coordinates> of the object's vertices.

Whether a specified <DRM Texture Coordinate> instance corresponds to exactly one texel in the texture definition, or to a blending of many texel values from the definition, is a decision made by the texture interpolation algorithm used to display the texture. The methods for calculating the interpolated texture values and for blending the texture onto the object are determined by an <DRM Image Mapping Function>. instance (Note that according to Image Mapping Functions and Texture Coordinates, <DRM Texture Coordinate> instances will only appear within the scope of some <DRM Image Mapping Function>.)

Class diagram

Figure 6.321 — DRM_Texture_Coordinate

Inherited field elements

Field name

Range

Field data type

None

   

Field elements

Field name

Range

Field data type

s1

 

Long_Float

t2

 

Long_Float

Associated to (one-way) (inherited)

  • None.

Associated to (one-way)

  • None.

Associated by (one-way) (inherited)

  • None.

Associated by (one-way)

  • None.

Associated with (two-way) (inherited)

  • None.

Associated with (two-way)

  • None.

Composed of (two-way) (inherited)

  • None.

Composed of (two-way)

Composed of (two-way metadata) (inherited)

  • None.

Composed of (two-way metadata)

  • None.

Component of (two-way) (inherited)

  • None.

Component of (two-way)

Constraints

Clarifications

1 This is the s value of the (s,t) coordinate.

2 This is the t value of the (s,t) coordinate.

Example(s)

  • The s, t coordinates to map to the lower left corner of a <DRM Polygon> instance.