1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <title>TextureCoordinatorCtr</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><TextureCoordinatorCtr></h1> 11 <h2>Description</h2> 12 <p> 13 This tag represents texture coordinate settings and transformation info. 14 </p> 15 <h2>Attributes</h2> 16 <table class="arguments"> 17<thead><tr><td>Type</td><td>Attributes</td><td>Description</td></tr></thead><tr><td>TextureMappingMethodCtr</td><th><CODE>MappingMethod</CODE></th><td> 18 Method for texture mapping. 19 </td></tr><tr><td>TextureMatrixModeCtr</td><th>MatrixMode</th><td> 20 Method for calculating texture coordinates. 21 </td></tr><tr><td /><th>ReferenceCamera</th><td> 22 The number of the referenced camera. 23 </td></tr><tr><td /><th>Rotate</th><td> 24 Rotation for texture coordinate conversion. 25 </td></tr><tr><td /><th>ScaleS</th><td> 26 The texture coordinate conversion X scaling value. 27 </td></tr><tr><td /><th>ScaleT</th><td> 28 The texture coordinate conversion Y scaling value. 29 </td></tr><tr><td /><th>SourceCoordinate</th><td> 30 The number that will be the source for texture coordinates. 31 </td></tr><tr><td /><th>TranslateS</th><td> 32 The texture coordinate conversion X translate value. 33 </td></tr><tr><td /><th>TranslateT</th><td> 34 The texture coordinate conversion Y translate value. 35 </td></tr></table> 36 <h2>TextureMappingMethodCtr Enumerator Type</h2> 37 <table class="arguments"> 38<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>UvCoordinateMap</th><td> 39 Maps using the texture coordinates set for each vertex. 40 </td></tr><tr><th>CameraCubeEnvMap</th><td> 41 Performs cube environment mapping from the camera being used for display. 42 </td></tr><tr><th>CameraSphereEnvMap</th><td> 43 Performs sphere environment mapping from the camera being used for display. 44 </td></tr><tr><th>ProjectionMap</th><td> 45 Peforms projection mapping from the specified camera. 46 </td></tr></table> 47 <h2>TextureMatrixModeCtr Enumerated Type</h2> 48 <table class="arguments"> 49<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>DccMaya</th><td> 50 Performs texture coordinate calculations the same as Maya. 51 </td></tr><tr><th>DccSoftimage</th><td> 52 Performs texture coordinate calculations the same as Softimage. 53 </td></tr><tr><th>Dcc3dsMax</th><td> 54 Performs texture coordinate calculations the same as 3ds Max. 55 </td></tr></table> 56 57<h2>Example Output</h2> 58 59<table> 60<tr> 61<td><pre> 62<Materials><br> 63 <MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"><br> 64 <ShaderReference /><br> 65 <MaterialColor VertexColorScale="1"><br> 66 <Emission R="0" G="0" B="0" A="0" /><br> 67 <Ambient R="1" G="1" B="1" A="0" /><br> 68 <Diffuse R="1" G="1" B="1" A="1" /><br> 69 <Specular0 R="1" G="1" B="1" A="0" /><br> 70 <Specular1 R="0" G="0" B="0" A="0" /><br> 71 <Constant0 R="0" G="0" B="0" A="1" /><br> 72 <Constant1 R="0" G="0" B="0" A="1" /><br> 73 <Constant2 R="0" G="0" B="0" A="1" /><br> 74 <Constant3 R="0" G="0" B="0" A="1" /><br> 75 <Constant1 R="0" G="0" B="0" A="1" /><br> 76 <Constant5 R="0" G="0" B="0" A="1" /><br> 77 </MaterialColor><br> 78 <Rasterization CullingMode="BackFace" IsPolygonOffsetEnabled="false" PolygonOffsetFactor="0" PolygonOffsetUnit="0" /><br> 79 <TextureCoordinators><br> 80 <strong><TextureCoordinatorCtr SourceCoordinate="0" MappingMethod="UvCoordinateMap" ReferenceCamera="0" MatrixMode="DccMaya" ScaleS="1" ScaleT="1" Rotate="0" TranslateS="0" TranslateT="0" /></strong><br> 81 </TextureCoordinators><br> 82 <TextureMappers><br> 83 <PixelBasedTextureMapperCtr><br> 84 <TextureReference>Textures["Number.1"]@file:Textures/Number.1.ctex</TextureReference><br> 85 <StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"><br> 86 <BorderColor R="0" G="0" B="0" A="1" /><br> 87 </StandardTextureSamplerCtr><br> 88 </PixelBasedTextureMapperCtr><br> 89 </TextureMappers><br> 90 <FragmentShader LayerConfig="ConfigurationType0"><br> 91 <BufferColor R="0" G="0" B="0" A="1" /><br> 92 <FragmentBump BumpTextureIndex="Texture0" BumpMode="NotUsed" IsBumpRenormalize="false" /><br> 93 <FragmentLighting FresnelConfig="No" IsClampHighLight="false" IsDistribution0Enabled="false" IsDistribution1Enabled="false" IsGeometricFactor0Enabled="false" IsGeometricFactor1Enabled="false" IsReflectionEnabled="false" /><br> 94 <FragmentLightingTable><br> 95 <ReflectanceRSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 96 <NullLookupTableCtr /><br> 97 </ReflectanceRSampler><br> 98 <ReflectanceGSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 99 <NullLookupTableCtr /><br> 100 </ReflectanceGSampler><br> 101 <ReflectanceBSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 102 <NullLookupTableCtr /><br> 103 </ReflectanceBSampler><br> 104 <Distribution0Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 105 <NullLookupTableCtr /><br> 106 </Distribution0Sampler><br> 107 <Distribution1Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 108 <NullLookupTableCtr /><br> 109 </Distribution1Sampler><br> 110 <FresnelSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 111 <NullLookupTableCtr /><br> 112 </FresnelSampler><br> 113 </FragmentLightingTable><br> 114 <TextureCombiners><br> 115 <TextureCombinerCtr CombineRgb="Modulate" CombineAlpha="Modulate" ScaleRgb="One" ScaleAlpha="One" Constant="Constant0" BufferInputRgb="PreviousBuffer" BufferInputAlpha="PreviousBuffer"><br> 116 <SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /><br> 117 <OperandRgb Operand0="Color" Operand1="Color" Operand2="Color" /><br> 118 <SourceAlpha Source0="PrimaryColor" Source1="Texture0" Source2="Constant" /><br> 119 <OperandAlpha Operand0="Alpha" Operand1="Alpha" Operand2="Alpha" /><br> 120 </TextureCombinerCtr><br> 121 </TextureCombiners><br> 122 <AlphaTest IsTestEnabled="false" TestFunction="Always" TestReference="0" /><br> 123 </FragmentShader><br> 124 <FragmentOperation><br> 125 <DepthOperation IsTestEnabled="true" TestFunction="Less" IsMaskEnabled="true" /><br> 126 <BlendOperation Mode="NotUsed" LogicOperation="Copy"><br> 127 <RgbParameter BlendFunctionSource="SourceAlpha" BlendFunctionDestination="OneMinusSourceAlpha" BlendEquation="FuncAdd" /><br> 128 <AlphaParameter BlendFunctionSource="One" BlendFunctionDestination="Zero" BlendEquation="FuncAdd" /><br> 129 <BlendColor R="0" G="0" B="0" A="1" /><br> 130 </BlendOperation><br> 131 </FragmentOperation><br> 132 </MaterialCtr><br> 133</Materials><br> 134</pre></td> 135</tr></table> 136 <hr><p>CONFIDENTIAL</p></body> 137</html>