### Keep up-to-date with Free tutorials!!

Sign me up to receive third-party emails from 3dtotal's partners, too!

- Latest news
- Exclusive Shop Offers
- Preview early content
- Plus much more

Not Ready to take that step? OK, Why not just Subscribe to the RSS Feed

1 | 2
Creating Fire in a Particle Editor

(Score 5 out of 5 after 1 Votes)
| 33032 Views
| 0
Software used:
Keywords:

With the help of the factor graphs I made it so that the particle motion is determined by the "Velocity" in the beginning and by the "Weight" later on. It looks like this (Fig.09a, Fig.09b, Fig.10a & Fig.10b).

Fig. 09a

Fig. 09b

Fig. 10a

Fig. 10b

This way I've got the desired fire motion. As the real flame is first wider and then gets thinner in the upper position I adjusted the diagram "Size over life (factor)" like this (Fig.11).

Fig. 11

You can watch the movement of only one particle if you check "Single particle" in the "Number of emitted particles" diagram. It is helpful when there are too many particles making it difficult to understand their motion. Now the flame is still rather intense and high. Decrease its height and imitate its fluctuations. This is what I've got after adjusting "Life of particle" and "Number of emitted particles" diagrams (Fig.12).

Fig. 12

The interesting thing about the diagrams with two lines is that they allow you to get the random values in the interval between the green and the blue lines. This means that each created particle will get the different parameter's value.
Not a bad result, but to make the fire more vivid, let's make the particles spin. The diagram "Spin of particle" is set from 0 to 100, and the diagram "Spin over life (factor)" is made fading to eliminate the unnatural spin at the top
(Fig.13).

Fig. 13

This is my result (Fig.14).

Fig. 14

You can add some sparkles to the fire by creating a new particle type inside the emitter, and also adding some smoke.
For sparkles, paint a white dot or a stroke on a black background and use the "Intense" parameter. For smoke you'll have to experiment with textures. As smoke doesn't shine, turn the "Intense" off and set a blue tint in the colour settings.
This is my simple way of creating fire in particle editors. If you download the file with the example and the textures you'll be able to see my fire version in Magic Particles.

## Part 3: Export & Integration into a game

After the fire has been created it has to be integrated into a game. The simplest way in this case is to render the fire to a frame-by-frame animation and looping it after that. Then you'll be able to play this animation as sprites in any place within the game.

Unfortunately the nature of such editors doesn't allow you to make an infinite loop process, so we'll have to cheat! But first we have to get the sequence of frames. There is nothing difficult about it; have a look at the export window of Magic Particles(Fig.15).

Fig. 15

Choose the frame size, usually a multiple of the power of 2 (for example 128, 256, 512), file type (any graphic format except lossy compression, alpha-channel not needed) and hit "Export". You'll get too many frames, so you'll need to select a small section, 1-3 seconds long. It'll be quite enough. To create a smooth transition I used Adobe After Effects. I'm not going to go into detail, but you can see a couple of snapshots in Fig.16.

Fig. 15

Import the frame sequence into After Effects and copy the animation as a second layer. After that, "cut" the tracks in the middle and move them so that one track ends in the place of the cut and the other begins. Shorten the composition time to make the tracks overlap. Then adjust the opacity of the upper layer so that it changes from 0% to 100%; from A to B.
After this operation the transition becomes almost unnoticeable. We only have to render the composition into a frame sequence and see how it works in the game.

Another way to export fire into a game is to use a developer version of the program Magic Particles(Dev). This version has an API to export the special effects into the game engine at a level of processing particles. The example API use you can download here.

## Conclusion

By experimenting with your results you can make the fire as fierce as a forest fire or as calm as a gas stove fire. You can make it brighter or dimmer, quicker or slower. Real fire is sometimes very different and having toyed with the parameters you can make it the way you wish.

In conclusion I would like to thank Yasha a.k.a Snork, Alexei a.k.a. Odin_KG and Masha Zaitseva for the help in the lesson creation.

If you have any questions or comments then please do not hesitate to contact me.

With best wishes, Evgeni Vendigo Bulatov.

The original translation of this piece from Russian to English was done by Grigori Bulatov, with additional clean-up by Drew Sikora.

## < previous page

1 | 2
Related Tutorials

The Making Of Chef Eric

by Esteban Pacheco
published on 2013-12-18

Keywords: MARI, making of, tutorial, 3D, Character, Lighting, Render, Map, UV, V-Ray, Photoshop, ZBrush, 3ds Max

(13)
0 119654

Creating small scale fire and smoke with the help of FumeFX

by Vikrant J Dalal
published on 2014-02-24

Keywords: Fire, Smoke, VFX, FumeFX, After Effects

(24)
15 120316

Render stylized characters

by Aekkarat Sumutchaya
published on 2016-11-02

Keywords: Aekkarat Sumutchaya, girl, hair, character, photoshop

(4)
0 5324

Making of: Just Love

by Aekkarat Sumutchaya
published on 2016-02-29

Keywords: Aekkarat Sumutchaya, photoshop, girl

(6)
0 7165