1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 8<TITLE>tex-lod</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">tex-lod</H1> 12 13<H2>Description</H2> 14<P>This program tests advanced LOD control mode of mipmapped texture such as LOD bias, edge-diagonal-LOD mode, bias clamping, and anisotropic filter. The screen is divided into four sections and it is possible to compare differences by setting parameters for the texture of each section.</P> 15<H2>Coverage</H2> 16<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 17 <TBODY> 18 <TR> 19<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 20<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 21<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 22 </TR> 23 <TR> 24<TD width="30%" rowspan="5"><A href="../../../gx/Texture/GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A></TD> 25<TD width="25%">Pointer to image data.</TD> 26<TD width="45%">Appropriate value.</TD> 27 </TR> 28 <TR> 29<TD width="25%">Width and height</TD> 30<TD width="45%">only power of 2 (depends on tpl file)</TD> 31 </TR> 32 <TR> 33<TD width="25%">format</TD> 34<TD width="45%">some formats (depends on tpl file)</TD> 35 </TR> 36 <TR> 37<TD width="25%">Wrap mode (s, t).</TD> 38<TD width="45%">one or more (depends on tpl file)</TD> 39 </TR> 40 <TR> 41<TD width="25%">Mipmap</TD> 42<TD width="45%">Always <FONT face="Courier New">GX_TRUE</FONT>.</TD> 43 </TR> 44 <TR> 45<TD width="30%" rowspan="8"><A href="../../../gx/Texture/GXInitTexObjLOD.html"><CODE><CODE>GXInitTexObjLOD</CODE></CODE></A></TD> 46<TD width="25%">minification filter</TD> 47<TD width="45%">Always <CODE>GX_LIN_MIP_LIN</CODE>.</TD> 48 </TR> 49 <TR> 50<TD width="25%">Magnification filter</TD> 51<TD width="45%">Always <CODE>GX_NEAR</CODE>, <CODE>GX_LINEAR</CODE>.</TD> 52 </TR> 53 <TR> 54<TD width="25%">Minimum LOD</TD> 55<TD width="45%">Always 0 (depends on tpl file).</TD> 56 </TR> 57 <TR> 58<TD width="25%">Max LOD</TD> 59<TD width="45%">Existing values (depends on tpl file).</TD> 60 </TR> 61 <TR> 62<TD width="25%">LOD bias</TD> 63<TD width="45%"><STRONG>Various values.</STRONG></TD> 64 </TR> 65 <TR> 66<TD width="25%">Bias clamp</TD> 67<TD width="45%"><STRONG><FONT face="Courier New">GX_TRUE</FONT> / <FONT face="Courier New">GX_FALSE</FONT></STRONG></TD> 68 </TR> 69 <TR> 70<TD width="25%">Edge LOD enable</TD> 71<TD width="45%"><STRONG><FONT face="Courier New">GX_TRUE</FONT> / <FONT face="Courier New">GX_FALSE</FONT></STRONG></TD> 72 </TR> 73 <TR> 74<TD width="25%">Anisotropic filter</TD> 75<TD width="45%"><CODE>GX_ANISO_1</CODE>, <CODE>GX_ANISO_2</CODE>, <CODE>GX_ANISO_4</CODE></TD> 76 </TR> 77 <TR> 78<TD width="30%"><A href="../../../gx/Texture/GXLoadTexObj.html"><CODE>GXLoadTexObj</CODE></A></TD> 79<TD width="25%">Destination texture name.</TD> 80<TD width="45%">Always <CODE>GX_TEXMAP0</CODE>.</TD> 81 </TR> 82 <TR> 83<TD width="30%" rowspan="2"><A href="../../../gx/Tev/GXSetTevOp.html"><CODE>GXSetTevOp</CODE></A></TD> 84<TD width="25%">TEV stage ID.</TD> 85<TD width="45%">Always <FONT face="Courier New">GX_TEVSTAGE0</FONT>.</TD> 86 </TR> 87 <TR> 88<TD width="25%">Operation mode</TD> 89<TD width="45%">Always <CODE>GX_REPLACE</CODE>.</TD> 90 </TR> 91 </TBODY> 92</TABLE> 93<H2>Using the Demo</H2> 94<P>START exits the demo.</P> 95<P>The Control Stick rotates the cube in the selected screen section.<br>The C Stick changes the scale of the cube in the selected screen section.</P> 96<P>X and Y Buttons move the cursor and select a section and a parameter to change.</P> 97<P>L and R Buttons change the value of the selected parameter.</P> 98<P>The A Button rotates or scales all cubes at the same time.</P> 99<P>The B Button changes the texture of all cubes.</P> 100<H2>Snapshot</H2> 101<P>Various LOD bias settings.</P> 102<P><IMG src="./images/tex-lod-0.jpg" alt="tex-lod-0.jpg (42351 bytes)" width="640" height="480"></P> 103<P>Edge-LOD / Anisotropic filter.</P> 104<P><IMG src="./images/tex-lod-1.jpg" alt="tex-lod-1.jpg (40663 bytes)" width="640" height="480"></P> 105<P>Bias clamp.</P> 106<P><IMG src="./images/tex-lod-2.jpg" alt="tex-lod-2.jpg (40607 bytes)" width="640" height="480"></P> 107<H2>Data Files Required</H2> 108<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl</FONT></P> 109<H2>Revision History</H2> 110<P>2006/03/01 Initial version.</P> 111<hr> 112<P>CONFIDENTIAL</p> 113</BODY> 114</HTML>