7
$\begingroup$

I would like to make high pressure jets of flame for a character in the game engine.

Here is my question: What would be/is the most time efficient manner to do this in since particles aren't available in 'Blender Game'.

computer resources are no problem; I'd just like a good looking, timely way for flames.

$\endgroup$

3 Answers 3

7
$\begingroup$

You can add a transparent animated plane. First off, you must change the Shading from Multitexture to GSL.

it must be tiled and evenly spaced like the image below enter image description here

Because there are four tiles you would check the animated button, and choose one tile along the Y and 4 along the X

enter image description here

you also need to input a frames per second, and how many frames the animation should run for.

enter image description here

Blend file with working animated transparent plane

$\endgroup$
0
6
$\begingroup$

You can have an empty emitting no collision planes (the texture is not animated, the object, however, has animated scale).

The planes here are animated so they start small, get larger, and then shrink back down again before disappearing. they also randomly rotate to make the fire look more realistic.

enter image description here

Notice that the object ends itself one logic tick After the animation finishes playing. This is only the logic for the plane with the fire texture to make it scale and rotate. it is parented to an empty that always tracks to the camera and moves along the global Z axis.

enter image description here

The emitters add that empty, and the empty is added with the fire plane.

enter image description here

Here I played around with the animation for scaling the flame, and the speed at which it rises. I am also using multiple emitters and I have adjusted the opacity on the flames to make them more transparent. I also having it randomly adding lamps that last for one logic tick to create the flickering effect.

enter image description here

(textures not packed, flames will be pink.)

Original blend file

Blend file with campfire

$\endgroup$
4
  • $\begingroup$ Very well done. Can you also mention what level of performance it gives? $\endgroup$ Apr 11, 2015 at 16:44
  • $\begingroup$ for just a few fires it works fine, but if you have a Lot of fire, it starts to bog-down the game.. $\endgroup$ Apr 11, 2015 at 16:46
  • $\begingroup$ I can run the campfire at 60 FPS $\endgroup$ Apr 11, 2015 at 16:47
  • $\begingroup$ I meant your you to add this info to your answer. $\endgroup$ Apr 11, 2015 at 17:02
3
$\begingroup$

Not recommended for Blender > 2.71

There is a particle system addon easyEmit for the BGE which produces nice results:

enter image description here

Note: I tested it with 2.72 it throws exceptions due to changed API, it would need some update. There might be an update in the thread linked above. According to the posts it should still work in 2.71.

Another one X-Emitter I've not tested (might be outdated):

$\endgroup$
1
  • $\begingroup$ actually, i still use this circa 2.74 and haven't encountered any pain. $\endgroup$
    – ruckus
    Apr 13, 2015 at 5:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .