Time for action — creating a particle system
We are going to use the code from the previous example:
- Particle systems are defined in
.particle
files. Create one in the media/particle folder. - Define the system and name it
MySmoke1:
particle_system MySmoke1 {
- Each particle should use the
Example/Smoke
material and be 10 units long and high:material Examples/Smoke particle_width 10 particle_height 10
- We want a maximum of 500 particles at the same time and each particle should be a point that always faces the camera:
quota 500 billboard_type point
- We want an emitter that emits the particles from a single point at a rate of 3 particles per second:
emitter Point { emission_rate 3
- The particles should be emitted in the direction (1,0,0) with a velocity of ...
Get Ogre 3D 1.7 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.