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-dist-atn</title>
10</head>
11
12<body>
13
14<h1 align="left">lit-dist-atn</h1>
15
16
17
18<h2>Description</h2>
19
20<p>This program tests distance attenuation control. One light illuminates the standing wall at a fixed interval.
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>Functions</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%" rowspan="2"><a href="../../../gx/Lighting/GXInitLightAttn.html"><code>GXInitLightAttn</code></a></TD>
32<TD width="25%"><font face="Courier New"><em><strong>Angular Attenuation Coefficients</strong></em></font></TD>
33<TD width="45%">Fixed (a0=1, a1=0, a2=0).</TD>
34    </tr>
35  <tr>
36<TD width="25%"><font face="Courier New"><em><strong>Distance Attenuation Coefficients</strong></em></font></TD>
37<TD width="45%"><strong>Some appropriate value sets.</strong></TD>
38    </tr>
39  <tr>
40<TD width="30%" rowspan="7"><a href="../../../gx/Lighting/GXSetChanCtrl.html"><code>GXSetChanCtrl</code></a></TD>
41<TD width="25%"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD>
42<TD width="45%">Always <font face="Courier New">GX_COLOR0A0</font>.</TD>
43    </tr>
44  <tr>
45<TD width="25%"><font face="Courier New"><em><strong>Channel enable</strong></em></font></TD>
46<TD width="45%">Always <font face="Courier New">GX_ENABLE</font>.</TD>
47    </tr>
48  <tr>
49<TD width="25%"><font face="Courier New"><em><strong>Ambient color source</strong></em></font></TD>
50<TD width="45%">Always register source.</TD>
51    </tr>
52  <tr>
53<TD width="25%"><font face="Courier New"><em><strong>Material color source</strong></em></font></TD>
54<TD width="45%">Always register source.</TD>
55    </tr>
56  <tr>
57<TD width="25%"><font face="Courier New"><em><strong>Light mask</strong></em></font></TD>
58<TD width="45%">Always <font face="Courier New">GX_LIGHT0</font>.</TD>
59    </tr>
60  <tr>
61<TD width="25%"><font face="Courier New"><em><strong>Diffusion function</strong></em></font></TD>
62<TD width="45%">Always <font face="Courier New">GX_DF_CLAMP</font>.</TD>
63    </tr>
64  <tr>
65<TD width="25%"><font face="Courier New"><em><strong>Attenuation function</strong></em></font></TD>
66<TD width="45%">Always <font face="Courier New"><strong>GX_AF_SPOT</strong></font>.</TD>
67    </tr>
68  <tr>
69<TD width="30%"><a href="../../../gx/Lighting/GXSetChanAmbColor.html"><code>GXSetChanAmbColor</code></a></TD>
70<TD width="25%"><font face="Courier New"><em><strong>Ambient color</strong></em></font></TD>
71<TD width="45%">Three colors.</TD>
72    </tr>
73  <tr>
74<TD width="30%"><a href="../../../gx/Lighting/GXSetChanMatColor.html"><code>GXSetChanMatColor</code></a></TD>
75<TD width="25%"><font face="Courier New"><em><strong>Material color</strong></em></font></TD>
76<TD width="45%">Only one color.</TD>
77    </tr>
78</TABLE>
79<h2>Using the Demo</h2>
80
81<P>START exits the test.</P>
82<P>The L and R Buttons change the distance attenuation coefficients (obtained from a table).
83</P>
84<P>The Control Stick moves the camera location.
85</P>
86<h2>Snapshot</h2>
87<P><IMG src="./images/lit-dist-atn.jpg" alt="lit-dist-atn.jpg (6258 bytes)" width="480" height="360"></p>
88
89<h2>Required Data Files</h2>
90
91<p>None.</p>
92<H2>Revision History</H2>
93<P>2006/03/01 Initial version.</P>
94<hr>
95<P>CONFIDENTIAL</p>
96</BODY>
97</HTML>