1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
9<title>lit-texture</title>
10</head>
11
12<body>
13
14<h1 align="left">lit-texture</h1>
15
16
17
18<h2>Description</h2>
19
20<p>This program tests a simple combination of lighting and texture. You can control each color component of the light, ambient, and material. Several TEV operations are also available.
21</p>
22
23<h2>Coverage</h2>
24<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
25  <tr>
26<TD width="30%" bgcolor="#C0C0C0"><em><strong>Function</strong></em></TD>
27<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD>
28<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD>
29    </tr>
30  <tr>
31<TD width="30%"><a href="../../../gx/Lighting/GXInitLightPos.html"><code>GXInitLightPos</code></a></TD>
32<TD width="25%"><em><strong><font face="Courier New">Position coordinate (x, y, z)</font></strong></em></TD>
33<TD width="45%">Various values.</TD>
34    </tr>
35  <tr>
36<TD width="30%"><a href="../../../gx/Lighting/GXInitLightColor.html"><code>GXInitLightColor</code></a></TD>
37<TD width="25%"><em><strong><font face="Courier New">Light color</font></strong></em></TD>
38<TD width="45%">Various values.</TD>
39    </tr>
40  <tr>
41<TD width="30%" rowspan="7"><a href="../../../gx/Lighting/GXSetChanCtrl.html"><code>GXSetChanCtrl</code></a></TD>
42<TD width="25%"><em><strong><font face="Courier New">Color channel ID</font></strong></em></TD>
43<TD width="45%">Always <font face="Courier New">GX_COLOR0A0</font>.</TD>
44    </tr>
45  <tr>
46<TD width="25%"><em><strong><font face="Courier New">Channel enable</font></strong></em></TD>
47<TD width="45%">Always <font face="Courier New">GX_ENABLE</font>.</TD>
48    </tr>
49  <tr>
50<TD width="25%"><em><strong><font face="Courier New">Ambient color source</font></strong></em></TD>
51<TD width="45%">Always register source.</TD>
52    </tr>
53  <tr>
54<TD width="25%"><em><strong><font face="Courier New">Material color source</font></strong></em></TD>
55<TD width="45%">Always register source.</TD>
56    </tr>
57  <tr>
58<TD width="25%"><em><strong><font face="Courier New">Light mask</font></strong></em></TD>
59<TD width="45%">Always <font face="Courier New">GX_LIGHT0</font>.</TD>
60    </tr>
61  <tr>
62<TD width="25%"><em><strong><font face="Courier New">Diffusion function</font></strong></em></TD>
63<TD width="45%">Always <font face="Courier New">GX_DF_CLAMP</font>.</TD>
64    </tr>
65  <tr>
66<TD width="25%"><em><strong><font face="Courier New">Attenuation function</font></strong></em></TD>
67<TD width="45%">Always <font face="Courier New">GX_AF_NONE</font>.</TD>
68    </tr>
69  <tr>
70<TD width="30%"><a href="../../../gx/Lighting/GXSetChanAmbColor.html"><code>GXSetChanAmbColor</code></a></TD>
71<TD width="25%"><em><strong><font face="Courier New">Ambient color</font></strong></em></TD>
72<TD width="45%">Various values.</TD>
73    </tr>
74  <tr>
75<TD width="30%"><a href="../../../gx/Lighting/GXSetChanMatColor.html"><code>GXSetChanMatColor</code></a></TD>
76<TD width="25%"><em><strong><font face="Courier New">Material color</font></strong></em></TD>
77<TD width="45%">Various values.</TD>
78    </tr>
79  <tr>
80<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><code>GXSetTevOp</code></a></TD>
81<TD width="25%"><em><strong><font face="Courier New">TEV stage ID</font></strong></em></TD>
82<TD width="45%">Always <font face="Courier New">GX_TEVSTAGE0</font>.</TD>
83    </tr>
84  <tr>
85<TD width="25%"><em><strong><font face="Courier New">Mode</font></strong></em></TD>
86<TD width="45%"><strong><font face="Courier New">GX_MODULATE</font></strong>,<strong> <font face="Courier New">GX_DECAL</font></strong>,<strong> <font face="Courier New">GX_PASSCLR</font></strong>,<strong><font face="Courier New">GX_REPLACE</font></strong>.</TD>
87    </tr>
88</TABLE>
89<h2>Operation Method</h2>
90
91<P>START exits the test.</P>
92<P>The Control Stick moves the light. </P>
93<P>The C Stick rotates the model. </P>
94<P>The A Button changes the model. </P>
95<P>The B button changes the TEV operation mode.
96</P>
97<P>The X/Y Buttons select an item to control in the following order:<br>Ambient (R-G-B)<br> &nbsp;&nbsp;&nbsp; Light (R-G-B)<br> &nbsp;&nbsp;&nbsp; Material (R-G-B)<br> </P>
98<P>The L/R triggers change the value of the selected item.
99</P>
100<h2>Snapshot</h2>
101<P>A textured dodecahedron with white light. TEV process is <font face="Courier New">GX_MODULATE</font>.</P>
102<P><IMG src="./images/lit-texture-0.jpg" alt="lit-texture-0.jpg (18097 bytes)" width="480" height="360"></p>
103
104<P>A textured dodecahedron with white light. TEV process is <font face="Courier New">GX_DECAL</font>.</P>
105<P><IMG src="./images/lit-texture-1.jpg" alt="lit-texture-1.jpg (19984 bytes)" width="480" height="360"></p>
106
107<h2>Required Data Files</h2>
108
109<p>None.</p>
110<H2>Revision History</H2>
111<P>03/01/2006 Initial version.</P>
112</body>
113</html>