1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
9<title>tg-project</title>
10</head>
11
12<body>
13
14<h1 align="left">tg-project</h1>
15
16
17
18<h2>Description</h2>
19
20<p>A <CODE>tg-project</CODE> tests every detail of the texture projection. The user can change all parameters in this sample interactively.</p>
21
22<h2>Coverage</h2>
23<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
24  <tr>
25<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD>
26<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD>
27<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD>
28    </tr>
29  <tr>
30<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXLoadTexMtxImm.html"><FONT face="Courier New">GXLoadTexMtxImm</FONT></a></TD>
31<TD width="25%">Matrices</TD>
32<TD width="45%">Appropriate projection matrix.</TD>
33    </tr>
34  <tr>
35<TD width="25%">Matrix destination.</TD>
36<TD width="45%"><FONT face="Courier New">GX_TEXMTX0</FONT></TD>
37    </tr>
38  <tr>
39<TD width="25%">Types</TD>
40<TD width="45%"><FONT face="Courier New">GX_MTX3x4</FONT></TD>
41    </tr>
42  <tr>
43<TD width="30%" rowspan="4"><a href="../../../gx/TexCoordGen/GXSetTexCoordGen.html"><FONT face="Courier New">GXSetTexCoordGen</FONT></a>&nbsp;&nbsp;</TD>
44<TD width="25%">Destination coordinates.</TD>
45<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD0</font>.</FONT></TD>
46    </tr>
47  <tr>
48<TD width="25%">Generation type.</TD>
49<TD width="45%"><FONT face="Courier New">GX_TG_MTX3x4</FONT></TD>
50    </tr>
51  <tr>
52<TD width="25%">Generation source.</TD>
53<TD width="45%"><FONT face="Courier New">GX_TG_POS</FONT></TD>
54    </tr>
55  <tr>
56<TD width="25%">Matrix source.</TD>
57<TD width="45%"><FONT face="Courier New">GX_TEXMTX0</FONT></TD>
58    </tr>
59</TABLE>
60<h2>Operation Method</h2>
61
62<p>The Menu button exits the test.</p>
63
64<p>The X Button toggles control mode.</p>
65
66<p>&nbsp;&nbsp;&nbsp; <u><strong>Camera Control</strong></u>
67
68<ul>
69<li><SPAN>The Main stick moves camera with trackball-style control.</SPAN></li>
70<li><SPAN>The Y Button zooms the camera in.</SPAN></li>
71<li><SPAN>The A Button zooms the camera out.</SPAN></li>
72</ul>
73
74<p>&nbsp;&nbsp;&nbsp; <u><strong>Light Position Control</strong></u>
75
76<ul>
77<li><SPAN>The Main stick moves light with trackball-style control.</SPAN></li>
78<li><SPAN>The Y Button zooms light in.</SPAN></li>
79<li><SPAN>The A Button zooms light out.</SPAN></li>
80</ul>
81
82<p>&nbsp;&nbsp;&nbsp; <u><strong>Light Parameter Control</strong></u>
83
84<ul>
85<li><SPAN>The Main stick up scales the light's field of view down.</SPAN></li>
86<li><SPAN>Main stick down scales the light's field of view up.</SPAN></li>
87</ul>
88
89<p>&nbsp;&nbsp;&nbsp; <u><strong>Model Select Control</strong></u>
90
91<ul>
92<li><SPAN>The B Button changes the model.</SPAN></li>
93</ul>
94
95<p>&nbsp;&nbsp;&nbsp; <u><strong>Texture Select Control</strong></u>
96
97<ul>
98<li><SPAN>The B Button switches the texture that is projected.</SPAN></li>
99</ul>
100
101<h2>Snapshot</h2>
102
103<p>Texture projection onto a cube.</p>
104
105<P><IMG src="./images/tg-project-1.jpg" alt="tg-project-1.jpg (14044 bytes)" WIDTH="320" HEIGHT="233"></p>
106
107<p>Texture projection onto a dodecahedron.</p>
108
109<P><IMG src="./images/tg-project-2.jpg" alt="tg-project-2.jpg (13732 bytes)" WIDTH="320" HEIGHT="216"></p>
110
111<p>Texture projection onto a cylinder.</p>
112
113<P><IMG src="./images/tg-project-3.jpg" alt="tg-project-3.jpg (15805 bytes)" WIDTH="320" HEIGHT="276"></p>
114
115<p>Texture is projection onto a sphere.</p>
116
117<P><IMG src="./images/tg-project-4.jpg" alt="tg-project-4.jpg (15604 bytes)" WIDTH="320" HEIGHT="243"></p>
118
119<p>Texture projection onto an octahedron.</p>
120
121<P><IMG src="./images/tg-project-5.jpg" alt="tg-project-5.jpg (14721 bytes)" WIDTH="320" HEIGHT="239"></p>
122
123<p>Texture projection onto an icosahedron.</p>
124
125<P><IMG src="./images/tg-project-6.jpg" alt="tg-project-6.jpg (14609 bytes)" WIDTH="320" HEIGHT="240"></p>
126
127<p>Texture projection onto an torus.</p>
128
129<P><IMG src="./images/tg-project-7.jpg" alt="tg-project-7.jpg (15483 bytes)" WIDTH="320" HEIGHT="244"></p>
130
131<h2>Data Files Required</h2>
132
133<p><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tg-01.tpl</FONT></p>
134<H2>Revision History</H2>
135<P>2006/03/01 Initial version.</P>
136<hr>
137<P>CONFIDENTIAL</p>
138</BODY>
139</HTML>