Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Initial Version and Version 1 of content/ParticleSystemCreationTutorial


Ignore:
Timestamp:
Oct 17, 2015, 1:52:49 PM (9 years ago)
Author:
zifloria
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/ParticleSystemCreationTutorial

    v1 v1  
     1= Creating Particle Systems =
     2
     3[[TracNav(TracNav/TOC_Development)]]
     4
     5You can create a particle system by either manually writing the .particle file or by using a graphical tool.
     6
     7== Manual ==
     8Here you can find some documentation on how that is done: [http://ogre3d.org/tikiwiki/tiki-index.php?page=Particles&structure=Cookbook here] and [http://www.ogre3d.org/docs/manual/manual_34.html#Particle-Scripts here].
     9
     10
     11== Tools ==
     12There are various tools around, but they all seem outdated/old. Here is a list of the ones I've found. Also, most only work on windows:
     13
     14 * [http://www.ogre3d.org/tikiwiki/OGRE+Particle+Editor OGRE Particle Editor]
     15 * [http://www.wzona.info/p/ogre-flow-particle-editor.html OGRE Flow - Particle Editor]
     16 * [http://www.fxpression.com/Download.html Particle Universe]
     17
     18= Getting your particle system in the game =
     19
     20
     21Add your particle system in:
     22  code/data/particle/particle_name.oxw
     23
     24{{{
     25    particle_system Orxonox/particle_name
     26    {
     27        //...
     28        material    PE/material_name
     29    }
     30}}}
     31
     32Add the material to the PE_materials.material file in:
     33  data_extern/materials/PE_materials.material
     34
     35{{{
     36    material PE/material_name
     37    {
     38        technique
     39        {
     40            pass
     41            {
     42                //...
     43
     44                texture_unit
     45                {
     46                    texture texture_name.png
     47                }
     48            }
     49        }
     50    }
     51}}}
     52
     53Add your texture(s) to:
     54  data_extern/images/textures
     55
     56{{{
     57    texture_name.png
     58}}}
     59
     60For testing, add a {{{<ParticleEmitter/>}}} to a test level in:
     61  code/data/levels/level_name.oxw
     62
     63{{{
     64    <ParticleEmitter
     65        source="Orxonox/particle_name"
     66        //...
     67        position="0,0,0"
     68        lifetime=2.0 loop=1 startdelay=3.0
     69    />
     70}}}