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>tex-filter</title> 10</head> 11 12<body> 13 14<h1 align="left">tex-filter</h1> 15 16 17<h2>Description</h2> 18 19<p>This program tests the texture filter modes. The screen is divided into four sections and each section shows a textured cube with a different filter mode set for each.</p> 20 21<p>Upper left: Near / Near<br> Upper right: Near / Linear<br> Lower left: Linear / Near (bi-linear)<br> Lower right: Linear / Linear (tri-linear)</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>Function</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="5"><a href="../../../gx/Texture/GXInitTexObj.html"><code>GXInitTexObj</code></a></TD> 32<TD width="25%">pointer to image data</TD> 33<TD width="45%">Appropriate value.</TD> 34 </tr> 35 <tr> 36<TD width="25%">Width and height</TD> 37<TD width="45%">only power of 2 (depends on tpl file)</TD> 38 </tr> 39 <tr> 40<TD width="25%">Format</TD> 41<TD width="45%">some formats (depends on tpl file)</TD> 42 </tr> 43 <tr> 44<TD width="25%">Wrap mode (s, t).</TD> 45<TD width="45%">one or more (depends on tpl file)</TD> 46 </tr> 47 <tr> 48<TD width="25%">Mipmap</TD> 49<TD width="45%"><FONT face="Courier New">GX_TRUE</FONT> / <FONT face="Courier New">GX_FALSE</FONT></TD> 50 </tr> 51 <tr> 52<TD width="30%" rowspan="8"><a href="../../../gx/Texture/GXInitTexObjLOD.html"><code>GXInitTexObjLOD</code></a></TD> 53<TD width="25%">minification filter</TD> 54<TD width="45%"><FONT face="Courier New">GX_NEAR</FONT>, <FONT face="Courier New">GX_LINEAR</FONT>, <FONT face="Courier New">GX_NEAR_MIP_NEAR</FONT>, <FONT face="Courier New">GX_NEAR_MIP_LIN</FONT>, <FONT face="Courier New">GX_LIN_MIP_NEAR</FONT>, <FONT face="Courier New">GX_LIN_MIP_LIN</FONT></TD> 55 </tr> 56 <tr> 57<TD width="25%">Magnification filter</TD> 58<TD width="45%">GX_NEAR, GX_LINEAR</TD> 59 </tr> 60 <tr> 61<TD width="25%">Minimum LOD</TD> 62<TD width="45%">Always 0 (depends on tpl file).</TD> 63 </tr> 64 <tr> 65<TD width="25%">Max LOD</TD> 66<TD width="45%">Existing values (depends on tpl file).</TD> 67 </tr> 68 <tr> 69<TD width="25%">LOD bias</TD> 70<TD width="45%">Always 0 (depends on tpl file).</TD> 71 </tr> 72 <tr> 73<TD width="25%">Bias clamp</TD> 74<TD width="45%">Always <CODE>GX_FALSE</CODE>.</TD> 75 </tr> 76 <tr> 77<TD width="25%">Edge LOD enable</TD> 78<TD width="45%">always <CODE>GX_FALSE</CODE> (depends on tpl file).</TD> 79 </tr> 80 <tr> 81<TD width="25%">Anisotropic filter</TD> 82<TD width="45%">always <CODE>GX_ANISO_1</CODE>.</TD> 83 </tr> 84 <tr> 85<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><code>GXLoadTexObj</code></a></TD> 86<TD width="25%">Destination texture name.</TD> 87<TD width="45%">Always <CODE>GX_TEXMAP0</CODE>.</TD> 88 </tr> 89 <tr> 90<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><code>GXSetTevOp</code></a></TD> 91<TD width="25%">TEV stage ID</TD> 92<TD width="45%">Always <FONT face="Courier New">GX_TEVSTAGE0</FONT>.</TD> 93 </tr> 94 <tr> 95<TD width="25%">Operation mode</TD> 96<TD width="45%">Always <CODE>GX_REPLACE</CODE>.</TD> 97 </tr> 98</TABLE> 99<h2>Operation Method</h2> 100 101<p>START exits the test.</p> 102 103<p>The Control Stick rotates four cubes at the same time.</p> 104 105<p>The C Stick changes scale of cubes.</p> 106 107<p>The A Button changes the texture.</p> 108<P>The B Button turns mipmap ON/OFF.</P> 109<h2>Snapshot</h2> 110 111<P><IMG src="./images/tex-filter-0.jpg" alt="tex-filter-0.jpg (104156 bytes)" WIDTH="640" HEIGHT="480"></p> 112 113<P><IMG src="./images/tex-filter-1.jpg" alt="tex-filter-1.jpg (65598 bytes)" WIDTH="640" HEIGHT="480"></p> 114 115<h2>Data Files Required</h2> 116 117<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl</CODE></p> 118<H2>Revision History</H2> 119<P>03/01/2006 Initial version.</P> 120</body> 121</html>