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 an {s, t} tuple in image space (also known as texture space) used to specify the location of an individual texel within an image.

Each MIP level of a 2D <Image> instance 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 2D 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> instance, <Point> instance, or <Tack Point> instance of which the <Texture Coordinate> instance is a component. A textured geometric DRM object generally has a <Texture Coordinate> instance for each vertex of the object. The image is mapped to the DRM object by interpolating between the various texture coordinates specified at the 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  According to <<Image Mapping Functions and Texture Coordinates>>, <Texture Coordinate> instances only appear within the scope of some <Image Mapping Function> instance.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

Example

  1. Consider a rectangular <Polygon> instance P representing the location of a logo on the side of an airplane. P has an <Image Mapping Function> component that describes how the logo represented by an <Image> instance is to be mapped. Each vertex of P has a <Texture Coordinate> component that specifies the position in the image that corresponds to that vertex.

  2. Consider a complicated <Polygon> instance representing the continent of North America. A <Texture Coordinate> instance specifies a lower left corner of a satellite image that corresponds to the position on the <Polygon> instance specified by a <Tack Point> instance so that the satellite image is properly displayed on top of the polygon.

FAQs

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

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

Reference: [OPENGL] for more information on clamping and repeating textures.

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

The interpretation of the t value of T depends on the value of the image_wrap_t field of the relevant <Image Mapping Function> instance.

Reference: [OPENGL] 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; 1
SE_Long_Float t; 2

Notes

Fields Notes

s

The s field specifies the s value of the {s,t} texture coordinate. For a <Texture Coordinate> instance with a <Texture Coordinate Control Link> component X, where the s_expression_index field of X is non-zero, the value of the s field is obtained from X.

t

The t field specifies the t value of the {s,t} texture coordinate. For a <Texture Coordinate> instance with a <Texture Coordinate Control Link> component X, where the t_expression_index field of X is non-zero, the value of the t field is obtained from X.


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

Last updated: July 26, 2006 Copyright © 2006 SEDRIS