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-bump-st</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">ind-bump-st</H1> 12 13<H2>Description</H2> 14<P>This program shows how to render an indirect texture for environment-mapped bump mapping. The indirect map consists of offsets in (<em>s</em>, <em>t</em>) texture space.</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%"><EM><STRONG><CODE>Number of stages</CODE></STRONG></EM></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%"><EM><STRONG><FONT face="Courier New">Indirect stage</FONT></STRONG></EM></TD> 31<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 32 </TR> 33 <TR> 34<TD width="25%"><EM><STRONG><FONT face="Courier New">Texture coordinates</FONT></STRONG></EM></TD> 35<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD0</font>.</FONT></TD> 36 </TR> 37 <TR> 38<TD width="25%"><EM><STRONG><FONT face="Courier New">Texture map</FONT></STRONG></EM></TD> 39<TD width="45%"><FONT face="Courier New">GX_TEXMAP2</FONT></TD> </TR> 40 <TR> 41<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE><CODE>GXSetIndTexCoordScale</CODE></CODE></A></TD> 42<TD width="25%"><EM><STRONG><FONT face="Courier New">Indirect stage</FONT></STRONG></EM></TD> 43<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 44 </TR> 45 <TR> 46<TD width="25%"><EM><STRONG><FONT face="Courier New">S scale</FONT></STRONG></EM></TD> 47<TD width="45%"><FONT face="Courier New">GX_ITS_1</FONT></TD> </TR> 48 <TR> 49<TD width="25%"><EM><STRONG><FONT face="Courier New">T scale</FONT></STRONG></EM></TD> 50<TD width="45%"><FONT face="Courier New">GX_ITS_1</FONT></TD> </TR> 51 <TR> 52<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexMtx.html"><CODE>GXSetIndTexMtx</CODE></A></TD> 53<TD width="25%"><EM><STRONG><FONT face="Courier New">Indirect matrix</FONT></STRONG></EM></TD> 54<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_ITM_0</font>.</FONT></TD> 55 </TR> 56 <TR> 57<TD width="25%"><EM><STRONG><FONT face="Courier New">Matrices</FONT></STRONG></EM></TD> 58<TD width="45%">Identity matrix.</TD> 59 </TR> 60 <TR> 61<TD width="25%"><EM><STRONG><FONT face="Courier New">Scale value</FONT></STRONG></EM></TD> 62 <TD width="45%">0</TD> 63 </TR> 64 <TR> 65<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetTevIndBumpST.html"><CODE>GXSetTevIndBumpST</CODE></A></TD> 66<TD width="25%"><EM><STRONG><FONT face="Courier New">TEV stage</FONT></STRONG></EM></TD> 67<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEVSTAGE1</font>.</FONT></TD> 68 </TR> 69 <TR> 70<TD width="25%"><EM><STRONG><FONT face="Courier New">Indirect stage</FONT></STRONG></EM></TD> 71<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 72 </TR> 73 <TR> 74<TD width="25%"><EM><STRONG><FONT face="Courier New">Indirect matrix</FONT></STRONG></EM></TD> 75<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_ITM_0</font>.</FONT></TD> 76 </TR> 77 </TBODY> 78</TABLE> 79<H2>Operation Method</H2> 80<P>End the test with START. The Control Stick rotates the model.</P> 81<H2>Snapshot</H2> 82<P><IMG src="./images/ind-bump-st-0.jpg" alt="ind-bump-st-0.jpg (16547 bytes)" width="640" height="448"></P> 83<P><IMG src="./images/ind-bump-st-1.jpg" alt="ind-bump-st-1.jpg (16772 bytes)" width="640" height="448"></P> 84<H2>Required Data Files</H2> 85<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/dnt-test02.tpl</FONT>.</P> 86<H2>Revision History</H2> 87<P>2006/03/01 Initial version.</P> 88<hr> 89<P>CONFIDENTIAL</p> 90</BODY> 91</HTML>