The SEDRIS Data Representation Model
APPENDIX A - Classes
Texture Coordinate

Class Name: Texture Coordinate

Superclass - <SEDRIS Abstract Base>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies 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 <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 <Texture Coordinate> instance is a coordinate within this image space.

A <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 <Vertex>, <Point>, or <Tack Point> instance of which the <Texture Coordinate> instance is a component. A textured geometric object generally has a <Texture Coordinate> for each vertex of the object, and the surface of the geometric object is 'painted' or 'covered' with the given <Image>, interpolating what part of the <Image> should be displayed where based on the <Texture Coordinate> components of the object's vertices.

Whether a specified <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 <Image Mapping Function>. instance (Note that according to <<Image Mapping Functions and Texture Coordinates>>, <Texture Coordinate> instances will only appear within the scope of some <Image Mapping Function>.)

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

Example

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

FAQs

Given a <Texture Coordinate>, the s value of which is greater than 1.0, how should it be interpreted?

The interpretation of the s value of the <Texture Coordinate> depends on the value of the image_wrap_s field of the relevant <Image Mapping Function>.

Given a <Texture Coordinate>, the t value of which is greater than 1.0, how should it be interpreted?

The interpretation of the <Texture Coordinate>'s t value depends on the value of the image_wrap_t field of the relevant <Image Mapping Function>.

Reference: OpenGL Programming Guide, 3rd edition for more information on clamping and repeating textures.

Constraints

Composed of (two-way)

Component of (two-way)

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_Long_Float s; (notes)
SE_Long_Float t; (notes)

Notes

Fields Notes


s

 The s field specifies the s value of the (s,t) coordinate.

t

 The t field specifies the t value of the (s,t) coordinate.

Prev: Text. Next: Texture Coordinate Control Link. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS