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-alpha</title>
10</head>
11
12<body>
13
14<h1 align="left">lit-alpha</h1>
15
16
17
18<h2>Description</h2>
19
20<P>This program tests multiple lighting channels. Each of the four channels uses one light, and you can choose which channel should be displayed. The alpha light makes an object transparent by using alpha blending.</P>
21<h2>Coverage</h2>
22<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
23  <tr>
24<TD width="30%" bgcolor="#C0C0C0"><em><strong>Function</strong></em></TD>
25<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD>
26<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD>
27    </tr>
28  <tr>
29<TD width="30%"><a href="../../../gx/Lighting/GXInitLightPos.html"><code>GXInitLightPos</code></a></TD>
30<TD width="25%"><font face="Courier New"><em><strong>Position coordinate (x, y, z)</strong></em></font></TD>
31<TD width="45%">Various values.</TD>
32    </tr>
33  <tr>
34<TD width="30%"><a href="../../../gx/Lighting/GXSetNumChans.html"><code>GXSetNumChans</code></a></TD>
35<TD width="25%"><font face="Courier New"><em><strong>Number of color channels.</strong></em></font></TD>
36      <TD width="45%"><strong>2</strong></TD>
37    </tr>
38  <tr>
39<TD width="30%" rowspan="7"><a href="../../../gx/Lighting/GXSetChanCtrl.html"><code>GXSetChanCtrl</code></a></TD>
40<TD width="25%"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD>
41<TD width="45%"><font face="Courier New"><strong>GX_COLOR0</strong></font>, <font face="Courier New"><strong>GX_ALPHA0</strong></font>, <font face="Courier New"><strong>GX_COLOR1</strong></font>, <font face="Courier New"><strong>GX_ALPHA1</strong></font>.</TD>
42    </tr>
43  <tr>
44<TD width="25%"><font face="Courier New"><em><strong>Channel enable</strong></em></font></TD>
45<TD width="45%">Always <font face="Courier New">GX_ENABLE</font>.</TD>
46    </tr>
47  <tr>
48<TD width="25%"><font face="Courier New"><em><strong>Ambient color source</strong></em></font></TD>
49<TD width="45%"><font face="Courier New">Always <font face="Courier New">GX_SRC_REG</font>.</font></TD>
50    </tr>
51  <tr>
52<TD width="25%"><font face="Courier New"><em><strong>Material color source</strong></em></font></TD>
53<TD width="45%"><font face="Courier New">Always <font face="Courier New">GX_SRC_REG</font>.</font></TD>
54    </tr>
55  <tr>
56<TD width="25%"><font face="Courier New"><em><strong>Light mask</strong></em></font></TD>
57<TD width="45%"><font face="Courier New">GX_LIGHT0</font> for Color0 channel.<br> <font face="Courier New">GX_LIGHT1</font> for Alpha0 channel.<br> <font face="Courier New">GX_LIGHT2</font> for Color1 channel.<br> <font face="Courier New">GX_LIGHT3</font> for Alpha1 channel.</TD>
58    </tr>
59  <tr>
60<TD width="25%"><font face="Courier New"><em><strong>Diffusion function</strong></em></font></TD>
61<TD width="45%"><font face="Courier New">Always <font face="Courier New">GX_DF_CLAMP</font>.</font></TD>
62    </tr>
63  <tr>
64<TD width="25%"><font face="Courier New"><em><strong>Attenuation function</strong></em></font></TD>
65<TD width="45%">Always <font face="Courier New">GX_AF_NONE</font>.</TD>
66    </tr>
67  <tr>
68<TD width="30%" height="38" rowspan="2"><a href="../../../gx/Lighting/GXSetChanAmbColor.html"><code>GXSetChanAmbColor</code></a></TD>
69<TD width="25%" height="19"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD>
70<TD width="45%" height="19"><font face="Courier New"><strong>GX_COLOR0A0</strong></font>, <font face="Courier New"><strong>GX_COLOR1A1</strong></font>.</TD>
71    </tr>
72  <tr>
73<TD width="25%" height="19"><font face="Courier New"><em><strong>Ambient color</strong></em></font></TD>
74<TD width="45%" height="19">Only one color.</TD>
75    </tr>
76  <tr>
77<TD width="30%" height="38" rowspan="2"><a href="../../../gx/Lighting/GXSetChanMatColor.html"><code>GXSetChanMatColor</code></a></TD>
78<TD width="25%" height="19"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD>
79<TD width="45%" height="19"><strong><font face="Courier New">GX_COLOR0A0</font></strong>, <strong><font face="Courier New">GX_COLOR1A1</font></strong>.</TD>
80    </tr>
81  <tr>
82<TD width="25%" height="19"><font face="Courier New"><em><strong>Material color</strong></em></font></TD>
83<TD width="45%" height="19">Only one color.</TD>
84    </tr>
85  <tr>
86<TD width="30%" rowspan="4"><a href="../../../gx/PixelProc/GXSetBlendMode.html"><code>GXSetBlendMode</code></a></TD>
87<TD width="25%"><font face="Courier New"><em><strong>Types</strong></em></font></TD>
88<TD width="45%"><font face="Courier New">GX_BM_BLEND</font></TD>
89    </tr>
90  <tr>
91<TD width="25%"><font face="Courier New"><em><strong>src factor</strong></em></font></TD>
92<TD width="45%"><font face="Courier New">GX_BL_INVSRCALPHA</font></TD>
93    </tr>
94  <tr>
95<TD width="25%"><font face="Courier New"><em><strong>dst factor</strong></em></font></TD>
96<TD width="45%"><font face="Courier New">GX_BL_SRCALPHA</font></TD>
97    </tr>
98  <tr>
99<TD width="25%"><font face="Courier New"><em><strong>op</strong></em></font></TD>
100<TD width="45%">N/A.</TD>
101    </tr>
102</TABLE>
103<h2>Operation Method</h2>
104
105<P>START exits the test.</P>
106<P>The Control Stick moves the position of the selected light.
107</P>
108<P>The C Stick rotates the model. </P>
109<P>A Button changes the model. </P>
110<P>B Button toggles color channel to display.
111</P>
112<P>The L and R Buttons select a light. </P>
113<h2>Snapshot</h2>
114
115<p>An opaque sphere (inside) and a half-transparent sphere (outside). Color channel 0 is used.
116</p>
117
118<P><IMG src="./images/lit-alpha-0.jpg" alt="lit-alpha-0.jpg (8609 bytes)" width="480" height="360"></p>
119
120
121<p>Cylinders with color channel 1. </p>
122
123<P><IMG src="./images/lit-alpha-1.jpg" alt="lit-alpha-1.jpg (9239 bytes)" width="480" height="360"></p>
124
125<p>Icosahedra with color channel 0. </p>
126
127<P><IMG src="./images/lit-alpha-2.jpg" alt="lit-alpha-2.jpg (8316 bytes)" width="480" height="360"></p>
128
129<p>Dodecahedra with color channel 1. </p>
130
131<P><IMG src="./images/lit-alpha-3.jpg" alt="lit-alpha-3.jpg (9129 bytes)" width="480" height="360"></p>
132
133<h2>Required Data Files</h2>
134
135<p>None.</p>
136<H2>Revision History</H2>
137<P>2006/03/01 Initial version.</P>
138<hr>
139<P>CONFIDENTIAL</p>
140</BODY>
141</HTML>