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 modes of mipmapped textures 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 16<H2>Coverage</H2> 17<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 18 <TBODY> 19 <TR> 20<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 21<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 22<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 23 </TR> 24 <TR> 25<TD width="30%" rowspan="5"><A href="../../../gx/Texture/GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A></TD> 26<TD width="25%"><SPAN class="argument">Pointer to image data.</SPAN></TD> 27<TD width="45%">Appropriate value.</TD> 28 </TR> 29 <TR> 30<TD width="25%"><SPAN class="argument">Width and height</SPAN></TD> 31<TD width="45%">Only power of 2 (depends on tpl file)</TD> 32 </TR> 33 <TR> 34<TD width="25%"><SPAN class="argument">format</SPAN></TD> 35<TD width="45%">Some formats (depends on tpl file)</TD> 36 </TR> 37 <TR> 38<TD width="25%"><SPAN class="argument">Wrap mode (s, t)</SPAN></TD> 39<TD width="45%">One or more (depends on tpl file)</TD> 40 </TR> 41 <TR> 42<TD width="25%"><SPAN class="argument">Mipmap</SPAN></TD> 43<TD width="45%">Always <CODE>GX_TRUE</CODE></TD> 44 </TR> 45 <TR> 46<TD width="30%" rowspan="8"><A href="../../../gx/Texture/GXInitTexObjLOD.html"><CODE><CODE>GXInitTexObjLOD</CODE></CODE></A></TD> 47<TD width="25%"><SPAN class="argument">minification filter</SPAN></TD> 48<TD width="45%">Always <CODE>GX_LIN_MIP_LIN</CODE></TD> 49 </TR> 50 <TR> 51<TD width="25%"><SPAN class="argument">Magnification filter</SPAN></TD> 52<TD width="45%">Always <CODE>GX_NEAR</CODE>, <CODE>GX_LINEAR</CODE></TD> 53 </TR> 54 <TR> 55<TD width="25%"><SPAN class="argument">Minimum LOD</SPAN></TD> 56<TD width="45%">Always 0 (depends on tpl file)</TD> 57 </TR> 58 <TR> 59<TD width="25%"><SPAN class="argument">Maximum LOD</SPAN></TD> 60<TD width="45%">Existing values (depends on tpl file)</TD> 61 </TR> 62 <TR> 63<TD width="25%"><SPAN class="argument">LOD bias</SPAN></TD> 64<TD width="45%"><STRONG>Various values.</STRONG></TD> 65 </TR> 66 <TR> 67<TD width="25%"><SPAN class="argument">Bias clamp</SPAN></TD> 68<TD width="45%"><STRONG><CODE>GX_TRUE</CODE> / <CODE>GX_FALSE</CODE></STRONG></TD> 69 </TR> 70 <TR> 71<TD width="25%"><SPAN class="argument">Edge LOD enable</SPAN></TD> 72<TD width="45%"><STRONG><CODE>GX_TRUE</CODE> / <CODE>GX_FALSE</CODE></STRONG></TD> 73 </TR> 74 <TR> 75<TD width="25%"><SPAN class="argument">Anisotropic filter</SPAN></TD> 76<TD width="45%"><STRONG><CODE>GX_ANISO_1</CODE>, <CODE>GX_ANISO_2</CODE>, <CODE>GX_ANISO_4</CODE></STRONG></TD> 77 </TR> 78 <TR> 79<TD width="30%"><A href="../../../gx/Texture/GXLoadTexObj.html"><CODE>GXLoadTexObj</CODE></A></TD> 80<TD width="25%"><SPAN class="argument">Destination texture name.</SPAN></TD> 81<TD width="45%">Always <CODE>GX_TEXMAP0</CODE></TD> 82 </TR> 83 <TR> 84<TD width="30%" rowspan="2"><A href="../../../gx/Tev/GXSetTevOp.html"><CODE>GXSetTevOp</CODE></A></TD> 85<TD width="25%"><SPAN class="argument">TEV stage ID</SPAN></TD> 86<TD width="45%">Always <CODE>GX_TEVSTAGE0</CODE></TD> 87 </TR> 88 <TR> 89<TD width="25%"><SPAN class="argument">Operation mode</SPAN></TD> 90<TD width="45%">Always <CODE>GX_REPLACE</CODE></TD> 91 </TR> 92 </TBODY> 93</TABLE> 94 95<H2>Using the Demo</H2> 96<P>START exits the demo.</P> 97<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> 98<P>X and Y Buttons move the cursor and select a section and a parameter to change.</P> 99<P>L and R Buttons change the value of the selected parameter.</P> 100<P>The A Button rotates or scales all cubes at the same time.</P> 101<P>The B Button changes the texture of all cubes.</P> 102 103<H2>Snapshot</H2> 104<P>Various LOD bias settings.</P> 105<P><IMG src="./images/tex-lod-0.jpg" alt="tex-lod-0.jpg (42351 bytes)" width="640" height="480"></P> 106 107<P>Edge-LOD / Anisotropic filter.</P> 108<P><IMG src="./images/tex-lod-1.jpg" alt="tex-lod-1.jpg (40663 bytes)" width="640" height="480"></P> 109 110<P>Bias clamp.</P> 111<P><IMG src="./images/tex-lod-2.jpg" alt="tex-lod-2.jpg (40607 bytes)" width="640" height="480"></P> 112 113<H2>Data Files Required</H2> 114<P><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl</CODE></P> 115 116<H2>Revision History</H2> 117<P> 1182006/03/01 Initial version.<br> 119</P> 120 121<hr><p>CONFIDENTIAL</p></body> 122</HTML>