DoGenerateTextureUV(3D) — Stardent Computer Inc. (\*(Dd)
NAME
DoGenerateTextureUV − Create a primitive attribute object for enabling/disabling generation of uv texture coordinates
SYNOPSIS
C:
DtObject DoGenerateTextureUV(switchvalue)
DtSwitch switchvalue;
Fortran:
INTEGER∗4 DOITUV(SWVAL)
INTEGER∗4 SWVAL
DESCRIPTION
DoGenerateTextureUV creates a primitive attribute object that enables/disables the generation of uv texture coordinates for primitives that do not have user-provided vertex information.
For some renderers certain primitive objects, such as spheres, are decomposed into triangles before they are drawn. If a sphere is to be texture mapped, the triangle vertices approximating the sphere must include uv and/or uvw texture coordinates. On the other hand if the sphere will never be texture mapped there is no need to generate and store that information.
The switchvalue parameter is used to specify whether or not subsequent primitives will generate uv coordinates for texture mapping when they decompose themselves into triangles. If the switchvalue is DcOff <DCOFF>, the primitive object will not generate any uv information. If the switchvalue is DcOn <DCON>, the primitive object will generate uv coordinates when possible.
DEFAULTS
The default for DoGenerateTextureUV is DcOff.
SEE ALSO
DoTextureMapBump(3D), DoTextureMapDiffuseColor(3D), DoTextureMapEnviron(3D), DoTextureMapTranspIntens(3D)
September 29, 2021