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>ind-warp</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">ind-warp</H1> 12 13<H2>Description</H2> 14<P>This program uses an indirect texture to warp the lookup of an image texture. The indirect warp texture is generated dynamically for each frame.</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%"><A href="../../../gx/Indirect/GXSetNumIndStages.html"><CODE><CODE>GXSetNumIndStages</CODE></CODE></A></TD> 26<TD width="25%"><SPAN class="argument">Number of stages</SPAN></TD> 27 <TD width="45%">1</TD> 28 </TR> 29 <TR> 30<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexOrder.html"><CODE>GXSetIndTexOrder</CODE></A></TD> 31<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 32<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 33 </TR> 34 <TR> 35<TD width="25%"><SPAN class="argument">Texture coordinates</SPAN></TD> 36<TD width="45%"><CODE>GX_TEXCOORD0</CODE></TD> 37 </TR> 38 <TR> 39<TD width="25%"><SPAN class="argument">Texture map</SPAN></TD> 40<TD width="45%"><CODE>GX_TEXMAP1</CODE></TD> 41 </TR> 42 <TR> 43<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE>GXSetIndTexCoordScale</CODE></A></TD> 44<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 45<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 46 </TR> 47 <TR> 48<TD width="25%"><SPAN class="argument">S scale</SPAN></TD> 49<TD width="45%"><CODE>GX_ITS_4</CODE></TD> 50 </TR> 51 <TR> 52<TD width="25%"><SPAN class="argument">T scale</SPAN></TD> 53<TD width="45%"><CODE>GX_ITS_4</CODE></TD> 54 </TR> 55 <TR> 56<TD width="30%" rowspan="5"><A href="../../../gx/Indirect/GXSetTevIndWarp.html"><CODE>GXSetTevIndWarp</CODE></A></TD> 57<TD width="25%"><SPAN class="argument">TEV Stages</SPAN></TD> 58<TD width="45%"><CODE>GX_TEVSTAGE1</CODE></TD> 59 </TR> 60 <TR> 61<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 62<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 63 </TR> 64 <TR> 65<TD width="25%"><SPAN class="argument">signed offsets</SPAN></TD> 66<TD width="45%"><CODE>GX_TRUE</CODE></TD> 67 </TR> 68 <TR> 69<TD width="25%"><SPAN class="argument">replace mode</SPAN></TD> 70<TD width="45%"><CODE>GX_FALSE</CODE></TD> 71 </TR> 72 <TR> 73<TD width="25%"><SPAN class="argument">indirect texture matrix</SPAN></TD> 74<TD width="45%"><CODE>GX_ITM_0</CODE></TD> 75 </TR> 76 </TBODY> 77</TABLE> 78 79<H2>Using the Demo</H2> 80<P>The START button halts the animation.<BR>The Control Stick rotates the object on the x and y axes.<br>The L and R Buttons rotate the object on the z axis.<br>The C Stick scales the object.?<BR> The A and B Buttons change the selected parameter. The X and Y Buttons select which parameter to change.</P> 81 82<H2>Snapshots</H2> 83<P><IMG src="./images/ind-warp-0.jpg" alt="ind-warp-0.jpg (24818 bytes)" width="640" height="448"></P> 84<P><IMG src="./images/ind-warp-1.jpg" alt="ind-warp-1.jpg (24807 bytes)" width="640" height="448"></P> 85<P><IMG src="./images/ind-warp-2.jpg" alt="ind-warp-2.jpg (20266 bytes)" width="640" height="448"></P> 86 87<H2>Required Data Files</H2> 88<P><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl</CODE></P> 89 90<H2>Revision History</H2> 91<P> 922006/03/01 Initial version.<br> 93</P> 94 95<hr><p>CONFIDENTIAL</p></body> 96</HTML>