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