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-xyz</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">ind-bump-xyz</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>x</em>, <em>y</em>, <em>z</em>) object 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%"><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><CODE>GXSetIndTexOrder</CODE></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"><font face="Courier New">GX_INDTEXSTAGE0</font>.</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"><font face="Courier New">GX_TEXCOORD0</font>.</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_TEXMAP2</FONT></TD> 40 </TR> 41 <TR> 42<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE><CODE>GXSetIndTexCoordScale</CODE></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"><font face="Courier New">GX_INDTEXSTAGE0</font>.</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"><font face="Courier New">GX_ITS_1</font>.</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"><font face="Courier New">GX_ITS_1</font>.</FONT></TD> 53 </TR> 54 <TR> 55<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexMtx.html"><CODE><CODE>GXSetIndTexMtx</CODE></CODE></A></TD> 56<TD width="25%"><FONT face="Courier New"><EM><STRONG>Indirect matrix</STRONG></EM></FONT></TD> 57<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_ITM_0</font>.</FONT></TD> 58 </TR> 59 <TR> 60<TD width="25%"><FONT face="Courier New"><EM><STRONG>Matrices</STRONG></EM></FONT></TD> 61<TD width="45%">Various normal matrices.</TD> 62 </TR> 63 <TR> 64<TD width="25%"><FONT face="Courier New"><EM><STRONG>Scale value</STRONG></EM></FONT></TD> 65 <TD width="45%">0</TD> 66 </TR> 67 <TR> 68<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetTevIndBumpXYZ.html"><CODE>GXSetTevIndBumpXYZ</CODE></A></TD> 69<TD width="25%"><FONT face="Courier New"><EM><STRONG>TEV stage</STRONG></EM></FONT></TD> 70<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEVSTAGE1</font>.</FONT></TD> 71 </TR> 72 <TR> 73<TD width="25%"><FONT face="Courier New"><EM><STRONG>Indirect stage</STRONG></EM></FONT></TD> 74<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 75 </TR> 76 <TR> 77<TD width="25%"><FONT face="Courier New"><EM><STRONG>Indirect matrix</STRONG></EM></FONT></TD> 78<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_ITM_0</font>.</FONT></TD> 79 </TR> 80 </TBODY> 81</TABLE> 82<H2>Operation Method</H2> 83<P>End the test with START. The Control Stick rotates the model.</P> 84<H2>Snapshot</H2> 85<P> 86<IMG src="./images/ind-bump-xyz-0.jpg" alt="ind-bump-xyz-0.jpg (21206 bytes)" width="640" height="448"></P> 87<P> 88<IMG src="./images/ind-bump-xyz-1.jpg" alt="ind-bump-xyz-1.jpg (18686 bytes)" width="640" height="448"></P> 89<H2>Required Data Files</H2> 90<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/dnt-test03.tpl</FONT>.</P> 91<H2>Revision History</H2> 92<P>2006/03/01 Initial version.</P> 93<hr> 94<P>CONFIDENTIAL</p> 95</BODY> 96</HTML>