OGRE粒子系统之在烈火中永生

OGRE粒子系统之在烈火中永生

OGRE的粒子系统模拟焰火就这么简单:

     //  add fire
    SceneNode *  pFireNode  =  static_cast < SceneNode *> (m_pBaseNode -> createChild());
    ParticleSystem
*  pSys2  =   ParticleSystemManager::getSingleton().createSystem( " fountain1 "
        
" Examples/Smoke " );
    SceneNode
*  fNode  =  static_cast < SceneNode *> (pFireNode -> createChild());
    fNode
-> attachObject(pSys2);

效果图:
screenshot_1134551213.jpg

你可能感兴趣的:(OGRE粒子系统之在烈火中永生)