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
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%" rowspan="4"><CODE><A href="../../../gx/TexCoordGen/GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A></CODE></TD>
26<TD width="25%"><SPAN class="argument">Texture coordinates</SPAN></TD>
27<TD width="45%"><CODE>GX_TEXCOORD0</CODE></TD>
28    </TR>
29    <TR>
30<TD width="25%"><SPAN class="argument">Enabled</SPAN></TD>
31<TD width="45%"><CODE>GX_TRUE</CODE></TD>
32    </TR>
33    <TR>
34<TD width="25%"><SPAN class="argument">Scale S</SPAN></TD>
35      <TD width="45%">63</TD>
36    </TR>
37    <TR>
38<TD width="25%"><SPAN class="argument">Scale T</SPAN></TD>
39      <TD width="45%">63</TD>
40    </TR>
41    <TR>
42<TD width="30%"><A href="../../../gx/Indirect/GXSetNumIndStages.html"><CODE>GXSetNumIndStages</CODE></A></TD>
43<TD width="25%"><SPAN class="argument">Number of stages</SPAN></TD>
44      <TD width="45%">1</TD>
45    </TR>
46    <TR>
47<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexOrder.html"><CODE>GXSetIndTexOrder</CODE></A></TD>
48<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD>
49<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD>
50    </TR>
51    <TR>
52<TD width="25%"><SPAN class="argument">Texture coordinates</SPAN></TD>
53<TD width="45%"><CODE>GX_TEXCOORD1</CODE></TD>
54    </TR>
55    <TR>
56<TD width="25%"><SPAN class="argument">Texture map</SPAN></TD>
57<TD width="45%"><CODE>GX_TEXMAP1</CODE></TD>
58    </TR>
59    <TR>
60<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE>GXSetIndTexCoordScale</CODE></A></TD>
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">S scale</SPAN></TD>
66<TD width="45%"><CODE>GX_ITS_1</CODE></TD>
67    </TR>
68    <TR>
69<TD width="25%"><SPAN class="argument">T scale</SPAN></TD>
70<TD width="45%"><CODE>GX_ITS_1</CODE></TD>
71    </TR>
72    <TR>
73<TD width="30%" rowspan="10"><A href="../../../gx/Indirect/GXSetTevIndTile.html"><CODE>GXSetTevIndTile</CODE></A></TD>
74<TD width="25%"><SPAN class="argument">TEV Stage</SPAN></TD>
75<TD width="45%"><CODE>GX_TEVSTAGE0</CODE>, <CODE>GX_TEVSTAGE1</CODE></TD>
76    </TR>
77    <TR>
78<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD>
79<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD>
80    </TR>
81    <TR>
82<TD width="25%"><SPAN class="argument">Tile size S</SPAN></TD>
83      <TD width="45%">64</TD>
84    </TR>
85    <TR>
86<TD width="25%"><SPAN class="argument">Tile size T</SPAN></TD>
87      <TD width="45%">64</TD>
88    </TR>
89    <TR>
90<TD width="25%"><SPAN class="argument">Tile spacing S</SPAN></TD>
91      <TD width="45%">0</TD>
92    </TR>
93    <TR>
94<TD width="25%"><SPAN class="argument">Tile spacing T</SPAN></TD>
95      <TD width="45%">64</TD>
96    </TR>
97    <TR>
98<TD width="25%"><SPAN class="argument">Indirect texture format</SPAN></TD>
99<TD width="45%"><CODE>GX_ITF_4</CODE></TD>
100    </TR>
101    <TR>
102<TD width="25%"><SPAN class="argument">Indirect texture matrix</SPAN></TD>
103<TD width="45%"><CODE>GX_ITM_0</CODE></TD>
104    </TR>
105    <TR>
106<TD width="25%"><SPAN class="argument">Indirect bias select</SPAN></TD>
107<TD width="45%"><CODE>GX_ITB_NONE</CODE>, <CODE>GX_ITB_T</CODE></TD>
108    </TR>
109    <TR>
110<TD width="25%"><SPAN class="argument">Bump alpha select</SPAN></TD>
111<TD width="45%"><CODE>GX_ITBA_OFF</CODE>, <CODE>GX_ITBA_S</CODE></TD>
112    </TR>
113  </TBODY>
114</TABLE>
115
116<H2>Using the Demo</H2>
117<P>START ends the demo.<BR>The main stick rotates the model.<BR>The substick translates the model.<BR>The A/B buttons zoom in/zoom out.</P>
118
119<H2>Snapshot</H2>
120<P><IMG src="./images/ind-pseudo-3d-0.jpg" alt="ind-pseudo-3d-0.jpg (32533 bytes)" width="640" height="448"></P>
121<P><IMG src="./images/ind-pseudo-3d-1.jpg" alt="ind-pseudo-3d-1.jpg (21990 bytes)" width="640" height="448"></P>
122<P><IMG src="./images/ind-pseudo-3d-2.jpg" alt="ind-pseudo-3d-2.jpg (21932 bytes)" width="640" height="448"></P>
123
124<H2>Required Data Files</H2>
125<P><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/pseudo.tpl</CODE></P>
126
127<H2>Revision History</H2>
128<P>
1292006/03/01 Initial version.<br>
130</P>
131
132<hr><p>CONFIDENTIAL</p></body>
133</HTML>