1<html>
2
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>pix-sub</title>
9</head>
10
11<body>
12
13<h1 align="left">pix-sub</h1>
14
15
16
17<h2>Description</h2>
18<P>This program shows an easy shadow volume method, which is one of the best examples of subtract mode pixel operation. It stores stencil values for shadow volume algorithm on the alpha plane and uses subtractive operation for those values.</P>
19<h2>Coverage</h2>
20<P>Subtract pixel operation.</P>
21<table border="1" width="65%" height="120" cellspacing="0">
22  <tr>
23<td width="21%" bgcolor="#C0C0C0" height="19"><B>Functions</B></td>
24<td width="20%" bgcolor="#C0C0C0" height="19"><B>Parameters</B></td>
25<td width="59%" bgcolor="#C0C0C0" height="19"><B>Description</B></td>
26  </tr>
27  <tr>
28<TD width="21%" height="19" rowspan="4"><code><a href="../../../gx/PixelProc/GXSetBlendMode.html">GXSetBlendMode</a></code></TD>
29<td width="20%" height="19"><font face="Courier New"><code><EM><STRONG>type</STRONG></EM></code></font></td>
30<td width="59%" height="19"><font face="Courier New">GX_BM_NONE, GX_BM_BLEND, GX_BM_SUBTRACT</font></td>
31  </tr>
32  <tr>
33<td width="20%" height="19"><font face="Courier New"><code><EM><STRONG>src_factor</STRONG></EM></code></font></td>
34<td width="59%" height="19"><font face="Courier New">GX_BL_ONE, GX_BL_ZERO</font>.</td>
35  </tr>
36  <tr>
37<td width="20%" height="19"><font face="Courier New"><code><EM><STRONG>dst_factor</STRONG></EM></code></font></td>
38<td width="59%" height="19"><font face="Courier New">GX_BL_ONE, GX_BL_ZERO, GX_BL_SRCCLR</font>.</td>
39  </tr>
40  <tr>
41<td width="20%" height="8"><font face="Courier New"><STRONG><EM><CODE>op</CODE></EM></STRONG></font></td>
42<td width="59%" height="8"><font face="Courier New">GX_LO_NOOP</font> (does not affect).</td>
43  </tr>
44</table>
45
46<h2>Operation Method</h2>
47<P>The A button toggles the animation ON/OFF.<br>The main stick moves the camera position.<br>PAUSE exits the test.</P>
48<h2>Snapshot</h2>
49
50<P><IMG src="./images/pix-sub-1.jpg" alt="pix-sub-1.jpg" width="640" height="472"></p>
51
52<h2>Required Data Files</h2>
53
54<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl</CODE></p>
55<H2>Revision History</H2>
56<P>2006/03/01 Initial version.</P>
57<hr>
58<P>CONFIDENTIAL</p>
59</BODY>
60</HTML>