Candle Flame

Back in around the beginning of 2023 I started a project but ended up on the “back burner” then kind of forgot about it. D’oh :laughing:

Any way its was my attempt at making a flame or flickering candle flame anyway. I would guess its been done before, and perhaps better but its my attempt at doing it.

Its a work in progress and not sure what I’m going to do with it, not sure it has a lot of usages, but it looks cool though.

The flame is generate in pure Xojo code.

Thought I would share a short video clip of it.
Flame

4 Likes

the minimum random color should have a value maybe above 64 or the flames appear black sometimes.

you could use different images for the flames or try to embed this flames effekt with a mask.

https://fabiensanglard.net/doom_fire_psx/

Ah, yes, good point on the colors. I pulled the coloring code from another project where it used the "fire colors " but for something different.

For the flames I’m just using FIllOval, seems to do a decent job. As for that Drawing Fire example, maybe. Not sure if it will look right or not. Have to see.

Anyway thanks.

If you changed the rotation of the flame ever so slightly, randomly left and right it will make the fire look more alive I think. Great job with animating though!

Good point, I’ll have to look into that.

Thanks. :sunglasses:

Very impressive. Well done!

Thank you!

Updated it a bit. Have a new video of it, replaced the old video of it so same link as above.

Its a bit more “alive” now, so to speak. Pretty cool effect.

:sunglasses:

1 Like

looks better, need bit more gaseous look and maybe a background scene.
and less color step or fade between new color?

Very cool. You might also want to check out the “Drawing Fire” example, which uses a cellular automata model to simulate a fire effect. I believe this was created by Joe Strout many, many years ago.

Drawing Fire Example

1 Like

Yeah a background can be done, though right now this is for testing things out.

When I get more time I’ll have to look into the color step/fading. :sunglasses:

Thanks!

Yeah the “Drawing Fire” is pretty cool. :sunglasses:

When I get some time I’ll have to see if what of if can use any of it.

Thanks!

404 not found on the flame link :face_with_diagonal_mouth:

I was cleaning up my website probably got deleted during clean up.