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>pix-fog</title>
10</head>
11
12<body>
13
14<h1 align="left">pix-fog</h1>
15
16<h2>Description</h2>
17<P>This program shows six different fog methods that can be used with the Wii. The TV screen contains six subscreens, but only four subscreens can be displayed at one time. Each subscreen displays a different fog method.</P>
18
19<h2>Coverage</h2>
20<p>Fog function.</p>
21<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
22  <tr>
23<TD width="30%" bgcolor="#C0C0C0"><em><strong>Functions</strong></em></TD>
24<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD>
25<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD>
26    </tr>
27  <tr>
28<TD width="30%" rowspan="6"><A href="../../../gx/PixelProc/GXSetFog.html"><code>GXSetFog</code></A></TD>
29<TD width="25%"><SPAN class="argument">type</SPAN></TD>
30<TD width="45%"><SPAN>Represents one of six fog types.</SPAN></TD>
31    </tr>
32  <tr>
33<TD width="25%"><SPAN class="argument">startZ</SPAN></TD>
34<TD width="45%"><SPAN>Can be changed interactively (default=16.0f).</SPAN></TD>
35    </tr>
36  <tr>
37<TD width="25%"><SPAN class="argument">endZ</SPAN></TD>
38<TD width="45%"><SPAN>Can be changed interactively (default=1024.f).</SPAN></TD>
39    </tr>
40  <tr>
41<TD width="25%"><SPAN class="argument">nearZ</SPAN></TD>
42      <TD width="45%">0.0</TD>
43    </tr>
44  <tr>
45<TD width="25%"><SPAN class="argument">farZ</SPAN></TD>
46      <TD width="45%">1.0</TD>
47    </tr>
48  <tr>
49<TD width="25%"><SPAN class="argument">color</SPAN></TD>
50      <TD width="45%">( 128, 128, 128, 255 )</TD>
51    </tr>
52  <tr>
53<TD width="30%" rowspan="3"><a href="../../../gx/PixelProc/GXInitFogAdjTable.html"><CODE>GXInitFogAdjTable</CODE></a></TD>
54<TD width="25%"><SPAN class="argument">table</SPAN></TD>
55<TD width="45%">Address of the fog table.</TD>
56    </tr>
57  <tr>
58<TD width="25%"><SPAN class="argument">width</SPAN></TD>
59<TD width="45%">640 or 320.</TD>
60    </tr>
61  <tr>
62<TD width="25%"><SPAN class="argument">proj. matrix</SPAN></TD>
63<TD width="45%">Fixed camera.</TD>
64    </tr>
65  <tr>
66<TD width="30%" rowspan="3"><a href="../../../gx/PixelProc/GXSetFogRangeAdj.html"><CODE>GXSetFogRangeAdj</CODE></a></TD>
67<TD width="25%"><SPAN class="argument">enable</SPAN></TD>
68<TD width="45%"><CODE>GX_ENABLE</CODE> and <CODE>GX_DISABLE</CODE></TD>
69    </tr>
70  <tr>
71<TD width="25%"><SPAN class="argument">center</SPAN></TD>
72<TD width="45%">Varies according to viewport.</TD>
73    </tr>
74  <tr>
75<TD width="25%"><SPAN class="argument">table</SPAN></TD>
76<TD width="45%">Address of the fog table.</TD>
77    </tr>
78</TABLE>
79
80<h2>Using the Demo</h2>
81<P>The A button toggles the list and magnify modes.<BR>The B button changes the scene.<BR>The X button changes the tag position/animations.<BR>The Y button toggles the fog range adjust feature on and off.<BR>The R button toggles the animation on and off.<BR>In list mode, the Control stick moves the cursor to select the subscreen.<BR>In magnify mode, move the cursor using the Control stick up or down to change the <CODE>startZ</CODE>/<CODE>endZ</CODE> settings.<BR>In zoom up mode, moving the Control stick left and right changes the parameter.<BR>PAUSE exits the test.</P>
82
83<h2>Snapshot</h2>
84<p>Fog types are: <CODE>NONE</CODE>, <CODE>LINEAR</CODE>, <CODE>EXP</CODE> and <CODE>EXP2</CODE>.</p>
85<P><IMG src="./images/pix-fog-1.jpg" alt="pix-fog-1.jpg" WIDTH="642" HEIGHT="482"></p>
86
87<p>Fog types are: <CODE>EXP</CODE>, <CODE>EXP2</CODE>, <CODE>REV-EXP</CODE> and <CODE>REV-EXP2</CODE>.</p>
88<P><IMG src="./images/pix-fog-2.jpg" alt="pix-fog-2.jpg" WIDTH="642" HEIGHT="482"><br>
89</p>
90
91<h2>Required Data Files</h2>
92<p>None.</p>
93
94<H2>Revision History</H2>
95<P>
962006/03/01 Initial version.<br>
97</P>
98
99<hr><p>CONFIDENTIAL</p></body>
100</html>