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>tev-multi</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">tev-multi</H1>
12
13<H2>Description</H2>
14<P>This program tests multiple TEV stages using the re-ordering feature. Processes up to 8 TEV stages. Ordering parameters (for texture maps, texture coordinates, and color channel inputs) and TEV operation modes can be specified in each stage.</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>Function</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="5"><A href="../../../gx/Texture/GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A></TD>
25<TD width="25%">Pointer to image data.</TD>
26<TD width="45%">Appropriate value.</TD>
27    </TR>
28    <TR>
29<TD width="25%">Width and height</TD>
30<TD width="45%">Fixed value.</TD>
31    </TR>
32    <TR>
33<TD width="25%">Format</TD>
34<TD width="45%"><FONT face="Courier New">GX_TF_RGBA8</FONT></TD>
35    </TR>
36    <TR>
37<TD width="25%">Wrap mode(s, t)</TD>
38<TD width="45%">Always <code>GX_REPEAT</code>.</TD>
39    </TR>
40    <TR>
41<TD width="25%">Mipmap</TD>
42<TD width="45%">Always <CODE>GX_FALSE</CODE>.</TD>
43    </TR>
44    <TR>
45<TD width="30%"><A href="../../../gx/Texture/GXLoadTexObj.html"><CODE>GXLoadTexObj</CODE></A></TD>
46<TD width="25%">Destination texture name</TD>
47<TD width="45%"><FONT face="Courier New">GX_TEXMAP0</FONT> - <FONT face="Courier New">GX_TEXMAP7</FONT></TD>
48    </TR>
49    <TR>
50<TD width="30%"><A href="../../../gx/Lighting/GXSetNumChans.html"><CODE>GXSetNumChans</CODE></A></TD>
51<TD width="25%">Number of color channels.</TD>
52      <TD width="45%"><STRONG>0, 1, 2</STRONG></TD>
53    </TR>
54    <TR>
55<TD width="30%"><A href="../../../gx/TexCoordGen/GXSetNumTexGens.html"><CODE>GXSetNumTexGens</CODE></A></TD>
56<TD width="25%">Number of texture coordinates</TD>
57      <TD width="45%"><STRONG>0, 8</STRONG></TD>
58    </TR>
59    <TR>
60<TD width="30%" rowspan="4"><CODE><A href="../../../gx/TexCoordGen/GXSetTexCoordGen.html">GXSetTexCoordGen</A></CODE></TD>
61<TD width="25%">Texture coordinate ID</TD>
62<TD width="45%"><STRONG><FONT face="Courier New">GX_TEXCOORD0</FONT> - <FONT face="Courier New">GX_TEXCOORD7</FONT></TD>
63    </TR>
64    <TR>
65<TD width="25%">Type of texture coordinate generation</TD>
66<TD width="45%">Always <CODE>GX_TG_MTX2x4</CODE>.</TD>
67    </TR>
68    <TR>
69<TD width="25%">Source parameter of texture coordinate generation.</TD>
70<TD width="45%">Always <CODE>GX_TG_TEX0</CODE>.</TD>
71    </TR>
72    <TR>
73<TD width="25%">Matrix index</TD>
74<TD width="45%">Appropriate matrix index</TD>
75    </TR>
76    <TR>
77<TD width="30%"><A href="../../../gx/Tev/GXSetNumTevStages.html"><CODE>GXSetNumTevStages</CODE></A></TD>
78<TD width="25%">Number of TEV stages</TD>
79      <TD width="45%"><STRONG>1 - 8</STRONG></TD>
80    </TR>
81    <TR>
82<TD width="30%" rowspan="2"><A href="../../../gx/Tev/GXSetTevOp.html"><CODE>GXSetTevOp</CODE></A></TD>
83<TD width="25%">TEV stage ID</TD>
84<TD width="45%"><FONT face="Courier New">GX_TEVSTAGE0</FONT> - <FONT face="Courier New">GX_TEVSTAGE7</FONT></TD>
85    </TR>
86    <TR>
87<TD width="25%">Operation Mode</TD>
88<TD width="45%"><FONT face="Courier New">GX_PASSCLR</FONT>, <FONT face="Courier New">GX_REPLACE</FONT>, <FONT face="Courier New">GX_DECAL</FONT>, <FONT face="Courier New">GX_MODULATE</FONT>, <FONT face="Courier New">GX_BLEND</FONT></TD>
89    </TR>
90    <TR>
91<TD width="30%" rowspan="4"><A href="../../../gx/Tev/GXSetTevOrder.html"><CODE>GXSetTevOrder</CODE></A></TD>
92<TD width="25%">TEV stage ID</TD>
93<TD width="45%"><FONT face="Courier New">GX_TEVSTAGE0</FONT> - <FONT face="Courier New">GX_TEVSTAGE7</FONT></TD>
94    </TR>
95    <TR>
96<TD width="25%">Texture coordinate ID</TD>
97<TD width="45%"><FONT face="Courier New">GX_TEXCOORD0</FONT> - <FONT face="Courier New">GX_TEXCOORD7</FONT>, <FONT face="Courier New">GX_TEXCOORD_NULL</FONT></TD>
98    </TR>
99    <TR>
100<TD width="25%">Texture map ID</TD>
101<TD width="45%"><FONT face="Courier New">GX_TEXMAP0</FONT> - <FONT face="Courier New">GX_TEXMAP7</FONT>, <FONT face="Courier New">GX_TEXMAP_NULL</FONT></TD>
102    </TR>
103    <TR>
104<TD width="25%">Color channel ID</TD>
105<TD width="45%"><FONT face="Courier New">GX_COLOR0A0</FONT>, <FONT face="Courier New">GX_COLOR1A1</FONT>, <FONT face="Courier New">GX_COLOR_NULL</FONT></TD>
106    </TR>
107  </TBODY>
108</TABLE>
109<H2>Operation Method</H2>
110<P>End the test with START.</P>
111<P>The Control Stick moves the cursor.</P>
112<P>The X and Y Buttons change the parameter value pointed to by the cursor.</P>
113<H2>Snapshot</H2>
114<P>Eight layered textures using <CODE>GX_DECAL</CODE> mode.</P>
115<P><IMG src="./images/tev-multi-0.jpg" alt="tev-multi-0.jpg (58194 bytes)" width="640" height="480"></P>
116<P><CODE>GX_PASSCLR</CODE> and <CODE>GX_REPLACE</CODE>.</P>
117<P><IMG src="./images/tev-multi-1.jpg" alt="tev-multi-1.jpg (48172 bytes)" width="640" height="480"></P>
118<P><CODE>GX_BLEND</CODE> and <CODE>GX_MODULATE</CODE>.</P>
119<P><IMG src="./images/tev-multi-2.jpg" alt="tev-multi-2.jpg (54517 bytes)" width="640" height="480"></P>
120<P>Random ordering</P>
121<P><IMG src="./images/tev-multi-3.jpg" alt="tev-multi-3.jpg (54915 bytes)" width="640" height="480"></P>
122<H2>Required Data Files</H2>
123<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tev-02.tpl</FONT></P>
124<H2>Revision History</H2>
125<P>2006/03/01 Initial version.</P>
126<hr>
127<P>CONFIDENTIAL</p>
128</BODY>
129</HTML>