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$
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$
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$
  • $\begingroup$ Very well done. Can you also mention what level of performance it gives? $\endgroup$ – A Wild RolandiXor Apr 11 '15 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$ – X-27 the fluffy unicorn Apr 11 '15 at 16:46
  • $\begingroup$ I can run the campfire at 60 FPS $\endgroup$ – X-27 the fluffy unicorn Apr 11 '15 at 16:47
  • $\begingroup$ I meant your you to add this info to your answer. $\endgroup$ – A Wild RolandiXor Apr 11 '15 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$
  • $\begingroup$ actually, i still use this circa 2.74 and haven't encountered any pain. $\endgroup$ – Scalia Apr 13 '15 at 5:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.