1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/document.css" type="text/css" /> 7 <title>Graphix Library (gfx) Sample Demos</title> 8 </head> 9 <body> 10 <h1>ParticleChangeVtxDemo</h1> 11 12 <div class="section"><img src="images/ParticleChangeVtxDemo.png" border="0" width="400" height="240"/></div> 13 14 <h2>Overview</h2> 15 <p>Example of changing particle information.</p> 16 17 <h2>How to Use</h2> 18 <p> 19 <ul> 20 <li>Demo-specific operations</li> 21 <ul> 22 <li>None.</li> 23 </ul> 24 <li>Common Operations</li> 25 <ul> 26 <li>Slide pad: Rotate the camera</li> 27 <li>Slide pad + A Button: Move the camera back and forth</li> 28 <li>Slide pad + B Button: Move the camera in parallel</li> 29 <li>Slide pad + Y Button: Move the camera up and down</li> 30 <li>X Button: Reset the camera position</li> 31 <li>START Button: Restart the demo.</li> 32 </ul> 33 </ul> 34 </p> 35 36 <h2>Description</h2> 37 <p> 38 Demonstrates methods of changing particle information.</p> 39 <ul> 40 <li>There is a distinction between vertex attributes used by the GPU and attributes only used by the CPU.</li> 41 <li>There is also a distinction between parameters that have only one value at the ParticleSet level and streams that have values for each particle.</li> 42 </ul> 43 <p>The update method to use differs depending on these factors.</p> 44 <h4>Example when parameters are used by both the GPU and CPU</h4> 45 <p>Changing the vertex color</p> 46 <h4>Example when parameters are used by the CPU only</h4> 47 <p>Changing the lifespan </p> 48<p>Although LIFE influences the animation and particles yet to be born, it does not influence the lifespan of particles that already exist because NEG_TIMELIMIT is used to determine when existing particles are to be extinguished.<BR> Animation may become strange depending on these differences.<BR> If this becomes a problem, either revise NEG_TIMELIMIT or make it so LIFE is a stream.<BR> 49 </p> 50<h4>Example when streams are used by both the GPU and CPU</h4> 51<p>Changing the position of particles</p> 52<h4>Example when streams are used by the CPU only</h4> 53<p>Changing velocity</p> 54 <hr><p>CONFIDENTIAL</p></body> 55</html> 56 57