From The Mana World
(→Blinking: first chapter, till lacking real explanation.) |
|||
Line 10: | Line 10: | ||
==Blinking== | ==Blinking== | ||
Basic particle effect which creates a box of blinking particles. | Basic particle effect which creates a box of blinking particles. | ||
[[Image:Particle-tutorial-blinking.png|right]] | |||
*Basic emitters | *Basic emitters | ||
*position-x, position-y, position-z | *position-x, position-y, position-z | ||
Line 16: | Line 16: | ||
*output | *output | ||
*image | *image | ||
<pre><nowiki> | |||
<?xml version="1.0"?> | |||
<effect> | |||
<particle> | |||
<emitter> | |||
<property name="output" value= "1" /> <!-- We want one new particle per game tick --> | |||
<property name="lifetime" value= "10" /> <!-- we want each particle to survive for 3 game ticks --> | |||
<property name="image" value="graphics/particles/star-medium.png"/><!-- We want the particles to look like white stars. --> | |||
<property name="position-x" min="0" max="32" /> <!-- We want the particles to be spawned in an area 32 pixels wide...--> | |||
<property name="position-y" min="0" max="32" /> <!-- ...32 pixels deep and...--> | |||
<property name="position-z" min="0" max="32" /> <!-- ...32 pixels high. --> | |||
</emitter> | |||
</particle> | |||
</effect> | |||
</nowiki></pre> | |||
==Water Fountain== | ==Water Fountain== |
Revision as of 05:26, 3 June 2008
This will become a tutorial for creating particle effects. Still in the conceptualisation phase.
Basics
- how does the engine work
- where are the files for what purpose
- how can particle effects be added to maps
- how can particle effects be added to NPCs
Blinking
Basic particle effect which creates a box of blinking particles.
- Basic emitters
- position-x, position-y, position-z
- lifetime
- output
- image
<?xml version="1.0"?> <effect> <particle> <emitter> <property name="output" value= "1" /> <!-- We want one new particle per game tick --> <property name="lifetime" value= "10" /> <!-- we want each particle to survive for 3 game ticks --> <property name="image" value="graphics/particles/star-medium.png"/><!-- We want the particles to look like white stars. --> <property name="position-x" min="0" max="32" /> <!-- We want the particles to be spawned in an area 32 pixels wide...--> <property name="position-y" min="0" max="32" /> <!-- ...32 pixels deep and...--> <property name="position-z" min="0" max="32" /> <!-- ...32 pixels high. --> </emitter> </particle> </effect>
Water Fountain
Moving particles with physics.
- horizontal- and vertical-angle
- power
- gravity
- Killed by floor contact
Fireball Fountain
- Nested emitters
- bounce
- animation
Orbiting Spheres
- acceleration
- momentum
- die-distance
- dyeing
Smoke puffs
Demonstrates the use of nested emitters for pulsating effects using the nomads pipe as an example
- Negative minimum output for irregular output
- Using nested emitters for timing purpose
Triangle in circle
- Using nested emitter for circular and linear effects
- Using trigonometrical calculations for creating geometric shapes.