O'Reilly logo

Introducing Starling by Thibault Imbert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Particles

When it comes to beautiful effects, particles are definitely my favorites. And believe it or not, particles look amazing but are not really complex. Technically, particles are literally textured quads moved around using a specific blending mode producing beautiful combinations.

To design our particles for Starling, we will be using a very convenient tool named ParticleDesigner (developed by 71 squared, the same company behind GlyphDesigner, which we used for our bitmap fonts). Figure 1-59 shows a snapshot of ParticleDesigner. Notice the emulation mode (on the right), where you can preview the particles you are designing.

Particle Designer on MacOS

Figure 1-59. Particle Designer on MacOS

The main window is just a bunch of parameters to modify. You can easily spend hours playing with all those options to create the particles you want. There is actually a randomize button to automatically generate parameters and as a result produce different particles effects.

Figure 1-60 illustrates the save-as dialog box of Particle Designer, exporting the ParticleEmitter file (.pex) and the texture to render our particles. Those two files will be the files we will be using to feed our ParticleDesignerPS object.

Particle Designer on MacOS

Figure 1-60. Particle Designer on MacOS

Figure 1-61 is an example of particles created from ParticleDesigner and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required