The SEDRIS Data Representation Model
APPENDIX A - Classes Texture Coordinate Control Link |
---|
An instance of this DRM class is a specialized <Control Link> instance used to provide the connection between an ordered aggregation of <Expression> instances and the target fields of one or more <Texture Coordinate> instances.
Consider a <Polygon> instance P representing an exterior wall of a building, such that P has an <Image Mapping Function> component that applies a texture to P. Each <Vertex> component Vi of P has a <Texture Coordinate> component TCi.
Consider an explosion simulated near the building representation of which P is a part, such that there is a state change to the wall from undamged to showing damage from resulting from smoke. The data provider chooses to model this state change by changing the s, t values for each TCi so that the texture applied to P changes from a portion of the referenced <Image> instance representing an undamaged wall to another portion of the same <Image> instance showing damage resulting from smoke.
This is accomplished by supplying each TCi with a <Texture Coordinate Control Link> component Ki. Each Ki has two <Expression> components, one of which determines the value for the s field value of TCi while the other determines the value for the t field value of TCi.
No FAQs supplied.
SE_String | description; | 1 |
---|
SE_Integer_Unsigned | s_expression_index; | 2 |
---|---|---|
SE_Integer_Unsigned | t_expression_index; | 3 |
The description field specifies a text description of the purpose of the <Control Link> instance.
The s_expression_index field specifies which <Expression> component controls the s field value of the affected <Texture Coordinate> instance(s). If this value is zero, the s field values of those instances are not controlled; otherwise, the value is a one-based index into the ordered aggregation of <Expression> instances.
The t_expression_index field specifies which <Expression> component controls the t field value of the affected <Texture Coordinate> instance(s). If this value is zero, the t field values of those instances are not controlled; otherwise, the value is a one-based index into the ordered aggregation of <Expression> instances.
|