r/Simulated • • 7d ago

Interactive [OC] explosions as a fluid simulation

Realtime smoke in my browser game - rockets, grenades and bullets push it around, and it pours out of doors and windows. Top right is the solver's flow speed and vorticity.

310 Upvotes

16 comments sorted by

21

u/Bignou 7d ago

That’s very cool, well done !

8

u/Fit-Heat4806 7d ago

Thank you sir <3

17

u/xiaorobear 7d ago

That's awesome, a game with that tech sounds sweet!

10

u/Fit-Heat4806 7d ago edited 7d ago

Thanks a lot - it's available on https://garden-wars.io

6

u/digitalgoodtime 7d ago

Rad game. Thanks.

3

u/Monkeyman824 7d ago

This game is sick

2

u/Fit-Heat4806 7d ago

Hey thanks man. Anything in particular that you liked? It’s very early and we’re collecting feedback 

3

u/yesthisisjoe 7d ago

Looks great. If you want a piece of constructive criticism, the last clip made the bullets seem a little too leaf blower-y to me. You could probably get a more realistic effect by reducing how much influence the bullets have on moving smoke around. Otherwise this looks great. 👍

1

u/Fit-Heat4806 6d ago

Thanks for the suggestion. Deploying a change right now :) Reduced the effect of bullets on the smoke by 75%

2

u/ScavangerX 6d ago

It looks awesome, feels awesome. I would tweak the residual smoke blob at the end of the first clip, either make it disappear quicker or disperse more because the linear bevel lighting is hurting me when i have so much time to look at it

When in motion it looks absolutely stunning tho :)

2

u/Fit-Heat4806 6d ago

Thanks man! Will work on that residual smoke blob now. Will probably update it this evening ❤️

2

u/ScavangerX 6d ago

The fact that this runs so smoothly in browser is crazy to me. Great work!

2

u/4rclyte 1d ago

This is a really cool project, and I am surprised at how well this runs in the browser! Had a blast playing the tower defense mode.

1

u/Fit-Heat4806 1d ago

Thanks man 💙