armory3d / armory

3D Engine with Blender Integration
https://armory3d.org
zlib License
3.05k stars 316 forks source link

Fire+Smoke and Explosion Macros #2140

Open anonimo82 opened 3 years ago

anonimo82 commented 3 years ago

Is your feature request related to a problem? Please describe. No, it's not.

Describe the solution you'd like Fire+smoke (Macro for the Particle System to procedurally generate fire and smoke) Explosion (Like for fire+smoke, but oriented to the explosions - may be also add debris?)

Describe alternatives you've considered It's already possible with using Particles, but I'd prefer an Out-of-the box Macro, so the user will just Add->Explosion or Add->Fire and have some parameters to set, having it working

Additional context Nope

QuantumCoderQC commented 3 years ago

@anonimo82 Thanks for the report.

Is there any reference to the type of smoke and fire you mentioned?

Besides, it would be best to start small and add more option as we progress. So, do you have any specific math references for such smoke and fire?

My idea would be to implement this shader using custom particle node and then share the material. That way the parameters can be controlled in realtime with uniforms.

A few small examples made with the custom particle node: https://quantumcoderqc.itch.io/

anonimo82 commented 3 years ago

@anonimo82 Thanks for the report.

Is there any reference to the type of smoke and fire you mentioned?

No

Besides, it would be best to start small and add more option as we progress. So, do you have any specific math references for such smoke and fire?

No math, but it's more or less a fire effect done with particles, look at this: https://software.intel.com/content/www/us/en/develop/articles/an-overview-of-procedural-fire.html

My idea would be to implement this shader using custom particle node and then share the material. That way the parameters can be controlled in realtime with uniforms.

A few small examples made with the custom particle node: https://quantumcoderqc.itch.io/

Thanks, but it's not exactly what I mean.

Lykdraft commented 3 years ago

What about stuff like this --> https://eightsines.com/pub/particles/html5-webgl-v4/

You need to click 'next' a couple of times to see the more 'smoky' and 'firy' things.

(The thing here is that this is a particle system for OpenFL written in Haxe: https://github.com/restorer/zame-haxe-particles/ So maybe there might be some things to pick from?)

There actually is also a Kha-Port, but unfortunately, the last commit on this one was from 2017: https://github.com/RafaelOliveira/z-particles

anonimo82 commented 3 years ago

@Lykdraft yes, exactly!!!

chiaravalle commented 3 years ago

Nice one, sincerely hope you will implement it!

chiaravalle commented 2 years ago

I'd actually like Fire/Explosion/Smoke particle presets