from http://www.yake.org/forum/viewtopic.php?t=450&


GINO: a piece of code here.

first copy smoke.particle, rename and put it into yake: \yake\common\media\graphics.fx\ogresmoke.particle

in your program:

Code:

 graphics::IParticleSystem*               pParticleSystem; 
 graphics::ISceneNode*                    pParticleNode;	

Code:

    pParticleNode = mGWorld->createSceneNode(); 
    YAKE_ASSERT( pParticleNode ); 
    pParticleSystem = mGWorld->createParticleSystem("Examples/Smoke"); 
    YAKE_ASSERT( pParticleSystem ); 
     
    pParticleNode->attachParticleSystem ( pParticleSystem); 
    pParticleNode->setPosition( Vector3(10,10,0) );
 
codesnippets/particles.txt · Last modified: 2008/02/21 21:54 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki