Recently, I wrote a quick blog post showing the engine glow that I added to the protagonist’s space ship for my Super Space Trooper video game. Today I’m going to share how it was done, in case someone else is looking for a quick way to do it.
To start off with, I created an image in Photoshop that was simply a solid colour (a very dark blue) with an alpha channel.
I then added the shape of the engine’s glow into the Alpha channel of the same image. The image was saved as a PSD file as Unity can convert psds natively.
Next up I created an empty GameObject and placed it towards the back of the ship, right where the engine is. This was used to emit the particles. I first added an Ellipsoid Particle Emitter (Component -> Particles -> Ellipsoid Particle Emitter) and used the following values. Note: my ship is VERY small so I used small particles. You’ll likely need to resize yours and tweet it appropriately.
Next up I need a Particle Animator (Component -> Particles -> Particle Animator) in order to change the size, force and colours of the individual particles being emitted.
I then needed a Particle Renderer (Component -> Particles -> Particle Renderer) in order to display the particles. Here are the settings that I chose. Also, it’s important to use the Particles/Additive shader for the material being used in the Particle Renderer. It will provide a nice glowing effect.
Questions or comments? Feel free to post them here.