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>tg-light-fx</title> 10</head> 11 12<body> 13 14<h1 align="left">tg-light-fx</h1> 15 16 17 18<h2>Description</h2> 19 20<p>This program performs some effects using texgen by vertex normals. There are three effects currently implemented. The one is a cheap cartoon outline effect. Others are textured specular highlight using two different types of texgen matrices.</p> 21 22<h2>Coverage</h2> 23<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 24 <tr> 25<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 26<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 27<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 28 </tr> 29 <tr> 30<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXLoadTexMtxImm.html"><code>GXLoadTexMtxImm</code></a></TD> 31<TD width="25%">Matrices</TD> 32<TD width="45%">Appropriate projection matrix.</TD> 33 </tr> 34 <tr> 35<TD width="25%">Matrix destination.</TD> 36<TD width="45%"><FONT face="Courier New">GX_TEXMTX0</FONT></TD> 37 </tr> 38 <tr> 39<TD width="25%">Types</TD> 40<TD width="45%"><strong><FONT face="Courier New">GX_MTX2x4</FONT></strong></TD> 41 </tr> 42 <tr> 43<TD width="30%" rowspan="4"><a href="../../../gx/TexCoordGen/GXSetTexCoordGen.html"><code>GXSetTexCoordGen</code></a></TD> 44<TD width="25%">destination coord</TD> 45<TD width="45%"><FONT face="Courier New">GX_TEXCOORD0</FONT></TD> 46 </tr> 47 <tr> 48<TD width="25%">Generation type.</TD> 49<TD width="45%"><strong><FONT face="Courier New">GX_TG_MTX2x4</FONT></strong></TD> 50 </tr> 51 <tr> 52<TD width="25%">Generation source.</TD> 53<TD width="45%"><strong><FONT face="Courier New">GX_TG_NRM</FONT></strong></TD> 54 </tr> 55 <tr> 56<TD width="25%">Matrix source.</TD> 57<TD width="45%"><FONT face="Courier New">GX_TEXMTX0</FONT></TD> 58 </tr> 59 <tr> 60<TD width="30%" rowspan="5"><a href="../../../gx/Texture/GXInitTexObj.html"><code>GXInitTexObj</code></a></TD> 61<TD width="25%">Image pointer.</TD> 62<TD width="45%">Appropriate value.</TD> 63 </tr> 64 <tr> 65<TD width="25%">Width and height</TD> 66<TD width="45%">Appropriate value.</TD> 67 </tr> 68 <tr> 69<TD width="25%">Format</TD> 70<TD width="45%"><CODE>GX_TF_IA8</CODE>, <CODE>GX_TF_IA4</CODE></TD> 71 </tr> 72 <tr> 73<TD width="25%">Wrap mode (s, t).</TD> 74<TD width="45%">Always <CODE>GX_CLAMP</CODE>.</TD> 75 </tr> 76 <tr> 77<TD width="25%">Mipmap</TD> 78<TD width="45%">Always <CODE>GX_FALSE</CODE>.</TD> 79 </tr> 80 <tr> 81<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><code>GXLoadTexObj</code></a></TD> 82<TD width="25%">Destination texture name.</TD> 83<TD width="45%"><FONT face="Courier New">GX_TEXMAP0</FONT></TD> 84 </tr> 85 <tr> 86<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><code>GXSetTevOp</code></a></TD> 87<TD width="25%">TEV stage ID.</TD> 88<TD width="45%">Always <FONT face="Courier New">GX_TEVSTAGE0</FONT>.</TD> 89 </tr> 90 <tr> 91<TD width="25%">Operation mode</TD> 92<TD width="45%">Always <CODE>GX_DECAL</CODE>.</TD> 93 </tr> 94</TABLE> 95<h2>Operation Method</h2> 96 97<p>START exits the test.</p> 98 99<p>The Control Stick moves the light position.<br>The C Stick rotates the object.<br></p> 100 101<p>The A Button changes the effect mode.</p> 102 103<p>The B Button hides the light direction mark.</p> 104 105<p>The L/R buttons tune parameters for the current effect.</p> 106 107<p></p> 108 109<h2>Snap Shots</h2> 110 111<p>Cheap cartoon outline.</p> 112 113<P><IMG src="./images/tg-light-fx-0.jpg" alt="tg-light-fx-0.jpg (6022 bytes)" width="320" height="240"></p> 114 115<p>Specular highlight by 1D texgen.</p> 116 117<P><IMG src="./images/tg-light-fx-1.jpg" alt="tg-light-fx-1.jpg (7491 bytes)" width="320" height="240"></p> 118 119<p>Specular highlight by 2D texgen.</p> 120 121<P><IMG src="./images/tg-light-fx-2.jpg" alt="tg-light-fx-2.jpg (6747 bytes)" width="320" height="240"></p> 122 123<h2>Data Files Required</h2> 124 125<p>None.</p> 126<H2>Revision History</H2> 127<P>03/01/2006 Initial version.</P> 128</body> 129</html>