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-pseudo-3d</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">ind-pseudo-3d</H1> 12 13<H2>Description</H2> 14<P>This program shows one way to make use of pseudo-3D texturing. It shows a landscape scene to which a pseudo-3D texture has been applied. A series of layers are defined in a texture map that describe landscape appearance at difference elevations. A position-based texgen is used with an indirect texture to select the blend of layers that should be applied at any given elevation.</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%" rowspan="4"><CODE><A href="../../../gx/TexCoordGen/GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A></CODE></TD> 25<TD width="25%"><FONT face="Courier New"><EM><STRONG>Texture coordinate.</STRONG></EM></FONT></TD> 26<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD0</font>.</FONT></TD> 27 </TR> 28 <TR> 29<TD width="25%"><FONT face="Courier New"><EM><STRONG>enable</STRONG></EM></FONT></TD> 30<TD width="45%"><FONT face="Courier New">GX_TRUE</FONT></TD> </TR> 31 <TR> 32<TD width="25%"><FONT face="Courier New"><EM><STRONG>scale S</STRONG></EM></FONT></TD> 33 <TD width="45%">63</TD> 34 </TR> 35 <TR> 36<TD width="25%"><FONT face="Courier New"><EM><STRONG>scale T</STRONG></EM></FONT></TD> 37 <TD width="45%">63</TD> 38 </TR> 39 <TR> 40<TD width="30%"><A href="../../../gx/Indirect/GXSetNumIndStages.html"><CODE><CODE>GXSetNumIndStages</CODE></CODE></A></TD> 41<TD width="25%"><FONT face="Courier New"><EM><STRONG>number of stages</STRONG></EM></FONT></TD> 42 <TD width="45%">1</TD> 43 </TR> 44 <TR> 45<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexOrder.html"><CODE><CODE>GXSetIndTexOrder</CODE></CODE></A></TD> 46<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD> 47<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 48 </TR> 49 <TR> 50<TD width="25%"><FONT face="Courier New"><EM><STRONG>Texture coordinate.</STRONG></EM></FONT></TD> 51<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD1</font>.</FONT></TD> 52 </TR> 53 <TR> 54<TD width="25%"><FONT face="Courier New"><EM><STRONG>texture map</STRONG></EM></FONT></TD> 55<TD width="45%"><FONT face="Courier New">GX_TEXMAP1</FONT></TD> 56 </TR> 57 <TR> 58<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE><CODE>GXSetIndTexCoordScale</CODE></CODE></A></TD> 59<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD> 60<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 61 </TR> 62 <TR> 63<TD width="25%"><FONT face="Courier New"><EM><STRONG>S scale</STRONG></EM></FONT></TD> 64<TD width="45%"><FONT face="Courier New">GX_ITS_1</FONT></TD> </TR> 65 <TR> 66<TD width="25%"><FONT face="Courier New"><EM><STRONG>T scale</STRONG></EM></FONT></TD> 67<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_ITS_1</font></FONT></TD> 68 </TR> 69 <TR> 70<TD width="30%" rowspan="10"><A href="../../../gx/Indirect/GXSetTevIndTile.html"><CODE>GXSetTevIndTile</CODE></A></TD> 71<TD width="25%"><FONT face="Courier New"><EM><STRONG>TEV stage</STRONG></EM></FONT></TD> 72<TD width="45%"><CODE>GX_TEVSTAGE0</CODE>, <CODE>GX_TEVSTAGE1</CODE>.</TD> </TR> 73 <TR> 74<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD> 75<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD> 76 </TR> 77 <TR> 78<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile size S</STRONG></EM></FONT></TD> 79 <TD width="45%">64</TD> 80 </TR> 81 <TR> 82<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile size T</STRONG></EM></FONT></TD> 83 <TD width="45%">64</TD> 84 </TR> 85 <TR> 86<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile spacing S</STRONG></EM></FONT></TD> 87 <TD width="45%">0</TD> 88 </TR> 89 <TR> 90<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile spacing T</STRONG></EM></FONT></TD> 91 <TD width="45%">64</TD> 92 </TR> 93 <TR> 94<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect texture format</STRONG></EM></FONT></TD> 95<TD width="45%"><FONT face="Courier New">GX_ITF_4</FONT></TD> </TR> 96 <TR> 97<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect texture matrix</STRONG></EM></FONT></TD> 98<TD width="45%"><FONT face="Courier New">GX_ITM_0</FONT></TD> </TR> 99 <TR> 100<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect bias select</STRONG></EM></FONT></TD> 101<TD width="45%"><font face="Courier New">GX_ITB_NONE</font>, <font face="Courier New">GX_ITB_T</font>.</TD> 102 </TR> 103 <TR> 104<TD width="25%"><FONT face="Courier New"><EM><STRONG>bump alpha select</STRONG></EM></FONT></TD> 105<TD width="45%"><font face="Courier New">GX_ITBA_OFF</font>, <font face="Courier New">GX_ITBA_S</font>.</TD> 106 </TR> 107 </TBODY> 108</TABLE> 109<H2>Operation Method</H2> 110<P>START stops the texture animation.<br>The Control Stick rotates the model. The C Stick translates the model. <br> The A and B Buttons zoom in and out.</P><H2>Snapshot</H2> 111<P> 112<IMG src="./images/ind-pseudo-3d-0.jpg" alt="ind-pseudo-3d-0.jpg (32533 bytes)" width="640" height="448"></P> 113<P> 114<IMG src="./images/ind-pseudo-3d-1.jpg" alt="ind-pseudo-3d-1.jpg (21990 bytes)" width="640" height="448"></P> 115<P> 116<IMG src="./images/ind-pseudo-3d-2.jpg" alt="ind-pseudo-3d-2.jpg (21932 bytes)" width="640" height="448"></P> 117<H2>Required Data Files</H2> 118<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/pseudo.tpl</FONT>.</P> 119<H2>Revision History</H2> 120<P>03/01/2006 Initial version.</P> 121</BODY> 122</HTML>