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<h2>Description</h2> 17<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> 18 19<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> 20 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>Functions</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%" rowspan="5"><a href="../../../gx/Texture/GXInitTexObj.html"><code>GXInitTexObj</code></a></TD> 30<TD width="25%"><SPAN class="argument">Pointer to image data</SPAN></TD> 31<TD width="45%">Appropriate value.</TD> 32 </tr> 33 <tr> 34<TD width="25%"><SPAN class="argument">Width and height</SPAN></TD> 35<TD width="45%">Only power of 2 (depends on tpl file)</TD> 36 </tr> 37 <tr> 38<TD width="25%"><SPAN class="argument">format</SPAN></TD> 39<TD width="45%">Some formats (depends on tpl file)</TD> 40 </tr> 41 <tr> 42<TD width="25%"><SPAN class="argument">Wrap mode (s, t)</SPAN></TD> 43<TD width="45%">One or more (depends on tpl file)</TD> 44 </tr> 45 <tr> 46<TD width="25%"><SPAN class="argument">Mipmap</SPAN></TD> 47<TD width="45%"><CODE>GX_TRUE</CODE> / <CODE>GX_FALSE</CODE></TD> 48 </tr> 49 <tr> 50<TD width="30%" rowspan="8"><a href="../../../gx/Texture/GXInitTexObjLOD.html"><code><CODE>GXInitTexObjLOD</CODE></code></a></TD> 51<TD width="25%"><SPAN class="argument">minification filter</SPAN></TD> 52<TD width="45%"><strong><CODE>GX_NEAR</CODE>, <CODE>GX_LINEAR</CODE>, <CODE>GX_NEAR_MIP_NEAR</CODE>, <CODE>GX_NEAR_MIP_LIN</CODE>, <CODE>GX_LIN_MIP_NEAR</CODE>, <CODE>GX_LIN_MIP_LIN</CODE></strong></TD> 53 </tr> 54 <tr> 55<TD width="25%"><SPAN class="argument">Magnification filter</SPAN></TD> 56<TD width="45%"><strong><CODE>GX_NEAR</CODE>, <CODE>GX_LINEAR</CODE></strong></TD> 57 </tr> 58 <tr> 59<TD width="25%"><SPAN class="argument">Minimum LOD</SPAN></TD> 60<TD width="45%">Always 0 (depends on tpl file)</TD> 61 </tr> 62 <tr> 63<TD width="25%"><SPAN class="argument">Maximum LOD</SPAN></TD> 64<TD width="45%">Existing values (depends on tpl file)</TD> 65 </tr> 66 <tr> 67<TD width="25%"><SPAN class="argument">LOD bias</SPAN></TD> 68<TD width="45%">Always 0 (depends on tpl file)</TD> 69 </tr> 70 <tr> 71<TD width="25%"><SPAN class="argument">Bias clamp</SPAN></TD> 72<TD width="45%">Always <CODE>GX_FALSE</CODE></TD> 73 </tr> 74 <tr> 75<TD width="25%"><SPAN class="argument">Edge LOD enable</SPAN></TD> 76<TD width="45%">Always <CODE>GX_FALSE</CODE> (depends on tpl file).</TD> 77 </tr> 78 <tr> 79<TD width="25%"><SPAN class="argument">Anisotropic filter</SPAN></TD> 80<TD width="45%">Always <CODE>GX_ANISO_1</CODE>.</TD> 81 </tr> 82 <tr> 83<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><code><CODE>GXLoadTexObj</CODE></code></a></TD> 84<TD width="25%"><SPAN class="argument">Destination texture name.</SPAN></TD> 85<TD width="45%">Always <CODE>GX_TEXMAP0</CODE></TD> 86 </tr> 87 <tr> 88<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><code>GXSetTevOp</code></a></TD> 89<TD width="25%"><SPAN class="argument">TEV stage ID</SPAN></TD> 90<TD width="45%">Always <CODE>GX_TEVSTAGE0</CODE></TD> 91 </tr> 92 <tr> 93<TD width="25%"><SPAN class="argument">Operation mode</SPAN></TD> 94<TD width="45%">Always <CODE>GX_REPLACE</CODE></TD> 95 </tr> 96</TABLE> 97 98<h2>Using the Demo</h2> 99<p>START exits the test.</p> 100<p>The Control Stick rotates four cubes at the same time.</p> 101<p>The C Stick changes scale of cubes.</p> 102<p>The A Button changes the texture.</p> 103<P>The B Button turns mipmap on and off.</P> 104 105<h2>Snapshot</h2> 106<P><IMG src="./images/tex-filter-0.jpg" alt="tex-filter-0.jpg (104156 bytes)" WIDTH="640" HEIGHT="480"></p> 107 108<P><IMG src="./images/tex-filter-1.jpg" alt="tex-filter-1.jpg (65598 bytes)" WIDTH="640" HEIGHT="480"></p> 109 110<h2>Data Files Required</h2> 111<p><CODE><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl</CODE></CODE></p> 112 113<H2>Revision History</H2> 114<P> 1152006/03/01 Initial version.<br> 116</P> 117 118<hr><p>CONFIDENTIAL</p></body> 119</html>