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-multi</title> 10</head> 11 12<body> 13<h1 align="left">lit-multi</h1> 14 15 16 17<h2>Description</h2> 18 19<P>This program does a test for multiple lights and light masks. Eight lights move around the model. All lights are used simultaneously in one color channel. You can control the position of each light and enable or disable each individual light. 20</P> 21<h2>Coverage</h2> 22 23<p>This test applies all combination patterns of light mask parameters. 24</p> 25<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 26 <tr> 27<TD width="30%" bgcolor="#C0C0C0"><em><strong>Function</strong></em></TD> 28<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD> 29<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD> 30 </tr> 31 <tr> 32<TD width="30%"><a href="../../../gx/Lighting/GXInitLightPos.html"><code>GXInitLightPos</code></a></TD> 33<TD width="25%"><font face="Courier New"><em><strong>Position coordinate (x, y, z)</strong></em></font></TD> 34<TD width="45%">Various values.</TD> 35 </tr> 36 <tr> 37<TD width="30%"><a href="../../../gx/Lighting/GXInitLightColor.html"><code>GXInitLightColor</code></a></TD> 38<TD width="25%"><font face="Courier New"><em><strong>Light color</strong></em></font></TD> 39<TD width="45%">Four colors.</TD> 40 </tr> 41 <tr> 42<TD width="30%"><a href="../../../gx/Lighting/GXLoadLightObjImm.html"><code>GXLoadLightObjImm</code></a></TD> 43<TD width="25%"><font face="Courier New"><em><strong>Light ID</strong></em></font></TD> 44<TD width="45%"><font face="Courier New"><strong><font face="Courier New">GX_LIGHT0 - GX_LIGHT7</font>.</strong></font></TD> 45 </tr> 46 <tr> 47<TD width="30%" rowspan="7"><a href="../../../gx/Lighting/GXSetChanCtrl.html"><code>GXSetChanCtrl</code></a></TD> 48<TD width="25%"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD> 49<TD width="45%">Always <font face="Courier New">GX_COLOR0</font>.</TD> 50 </tr> 51 <tr> 52<TD width="25%"><font face="Courier New"><em><strong>Channel enable</strong></em></font></TD> 53<TD width="45%">Always <font face="Courier New">GX_ENABLE</font>.</TD> 54 </tr> 55 <tr> 56<TD width="25%"><font face="Courier New"><em><strong>Ambient color source</strong></em></font></TD> 57<TD width="45%">Always <font face="Courier New">GX_SRC_REG</font>.</TD> 58 </tr> 59 <tr> 60<TD width="25%"><font face="Courier New"><em><strong>Material color source</strong></em></font></TD> 61<TD width="45%">Always <font face="Courier New">GX_SRC_REG</font>.</TD> 62 </tr> 63 <tr> 64<TD width="25%"><font face="Courier New"><em><strong>Light mask</strong></em></font></TD> 65<TD width="45%"><strong>All possible combinations.</strong></TD> 66 </tr> 67 <tr> 68<TD width="25%"><font face="Courier New"><em><strong>Diffusion function</strong></em></font></TD> 69<TD width="45%">Always <font face="Courier New">GX_DF_CLAMP</font>.</TD> 70 </tr> 71 <tr> 72<TD width="25%"><font face="Courier New"><em><strong>Attenuation function</strong></em></font></TD> 73<TD width="45%">Always <font face="Courier New">GX_AF_NONE</font>.</TD> 74 </tr> 75 <tr> 76<TD width="30%" height="38" rowspan="2"><a href="../../../gx/Lighting/GXSetChanAmbColor.html"><code>GXSetChanAmbColor</code></a></TD> 77<TD width="25%" height="19"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD> 78<TD width="45%" height="19">Only <font face="Courier New">GX_COLOR0A0</font>.</TD> 79 </tr> 80 <tr> 81<TD width="25%" height="19"><font face="Courier New"><em><strong>Ambient color</strong></em></font></TD> 82<TD width="45%" height="19">Only one color.</TD> 83 </tr> 84 <tr> 85<TD width="30%" height="38" rowspan="2"><a href="../../../gx/Lighting/GXSetChanMatColor.html"><code>GXSetChanMatColor</code></a></TD> 86<TD width="25%" height="19"><font face="Courier New"><em><strong>Color channel ID</strong></em></font></TD> 87<TD width="45%" height="19">Only <font face="Courier New">GX_COLOR0A0</font>.</TD> 88 </tr> 89 <tr> 90<TD width="25%" height="19"><font face="Courier New"><em><strong>Material color</strong></em></font></TD> 91<TD width="45%" height="19">Cycles through 4 colors.</TD> 92 </tr> 93</TABLE> 94<h2>Operation Method</h2> 95 96<P>START exits the test.</P> 97<P>The L and R Buttons select a light. </P> 98<P>The Control Stick moves the selected light. The C Stick rotates the model.<br> </P> 99<P>The A Button toggles the selected light on/off (if a light is selected). 100</P> 101<P>The X Button stops and starts light animation. 102</P> 103<P>The Y Button changes the material color of the model. 104</P> 105<P>The B button changes the model shape. </P> 106<h2>Snapshot</h2> 107 108<p>All lights turned on.</p> 109 110<P><IMG src="./images/lit-multi-0.jpg" alt="lit-multi-0.jpg (15184 bytes)" width="640" height="480"></p> 111 112<p>Four lights (<font face="Courier New">GX_LIGHT4-7</font>) are enabled. Others are disabled.</p> 113 114<P><IMG src="./images/lit-multi-15.jpg" alt="lit-multi-15.jpg (12257 bytes)" width="640" height="480"></p> 115 116<p>No light is enabled.</p> 117 118<P><IMG src="./images/lit-multi-255.jpg" alt="lit-multi-255.jpg (9479 bytes)" width="640" height="480"></p> 119 120<p>All lights turned on. Since bright yellow is used as the material color, the blue component is weakened.</p> 121 122<P><IMG src="./images/lit-multi-256.jpg" alt="lit-multi-256.jpg (15128 bytes)" width="640" height="480"></p> 123 124<h2>Required Data Files</h2> 125 126<p>None.</p> 127<H2>Revision History</H2> 128<P>03/01/2006 Initial version.</P> 129</body> 130</html>