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>ParticleCtrlEmissionDemo</h1> 11 <div class="section"><img src="images/ParticleCtrlEmissionDemo.png" border="0" width="400" height="240" /></div> 12 <h2>Overview</h2> 13 <p>This demo controls the emission volume of particles. This demo uses the demo library, <a href="../../../nw/demo/ParticleEffect/Overview.html">demo::ParticleEffect</a> class, and <a href="../../../nw/demo/ParticleNode/Overview.html">demo::ParticleNode</a> class.<br /> 14 </p> 15 <h2>How to Use</h2> 16 <p> 17 <ul> 18 <li>Demo-specific operations</li> 19 <ul> 20 <li>R Button: Increases the emission volume.</li> 21 <li>L Button: Decreases the emission volume.</li> 22 </ul> 23 <li>Common Operations</li> 24 <ul> 25 <li>Slide pad: Rotate the camera</li> 26 <li>Slide pad + A Button: Move the camera back and forth</li> 27 <li>Slide pad + B Button: Move the camera in parallel</li> 28 <li>Slide pad + Y Button: Move the camera up and down</li> 29 <li>X Button: Reset the camera position</li> 30 <li>START Button: Restart the demo.</li> 31 </ul> 32 </ul> 33 </p> 34 <h2>Description</h2> 35 <p>Particle emission volume can be dynamically controlled using the <span>nw::gfx::ResParticleEmitterParameter::SetEmissionRatio</span> method in the <span>nw::gfx::ResParticleEmitterParameter</span> class.<br /> 36 </p> 37 <pre> 38{ 39 nw::gfx::ResParticleEmitterParameter resEmitterParameter = particleEmitter->GetResParticleEmitterParameterCopy(); 40 resEmitterParameter.SetEmissionRatio(1.f); 41}</pre> 42 <p>Within demo code, emission volume is controlled using the SetEmissionRatio() method in the ParticleNode class.</p> 43 <hr><p>CONFIDENTIAL</p></body> 44</html> 45