This is great! When I have some leftover time I want to try copying this implementation for 3D. I reckon I could get away with minimal modifications to support the third axis...I think... That'll perform even worse though, hopefully my CPU can handle it or I'm gonna need a lot of leftover time to make a shader
Navier-Stokes fluid simulation explained with Godot game engine
21–30 of 36 posts
Re: Navier-Stokes fluid simulation explained with Godot game engine
#22In my implementations I use 4th order for both and vortices stick around a lot longer.
Re: Navier-Stokes fluid simulation explained with Godot game engine
#23Re: Navier-Stokes fluid simulation explained with Godot game engine
#24Earlier quoted context omitted.
It won’t satisfy those laws. It’s also not a goal though of this post.
I mean if you're writing a ray tracer and the reflected light has more intensity than the light sources, then that's not desired. You can have the same sort of thing going on with a fluid simulation.
Re: Navier-Stokes fluid simulation explained with Godot game engine
#25Earlier quoted context omitted.
Assuming you mean the site - pinch zoom & pan works for me on Windows and iOS?
well android chrome doesn't
Re: Navier-Stokes fluid simulation explained with Godot game engine
#26Re: Navier-Stokes fluid simulation explained with Godot game engine
#27Before you go adding vorticity confinement, consider performing a higher-order backward advection scheme (Runge-Kutta 2nd or similar), and using a higher-order interpolation method (triangle-shaped cloud instead of bilinear). In my implementations I use 4th order for both and vortices stick around a lot longer.
So instead of reading 16 grid values and combining them to get the interpolated sample value, you can fetch 4 bilinearly filtered samples and combine those. And thanks to the hardware filtering, those bilinear samples cost basically the same as reading an unfiltered value.
[1]: https://developer.nvidia.com/gpugems/gpugems2/part-iii-high-...
Re: Navier-Stokes fluid simulation explained with Godot game engine
#28I appreciate the AI disclosure, I hope that becomes normalized
Re: Navier-Stokes fluid simulation explained with Godot game engine
#29Re: Navier-Stokes fluid simulation explained with Godot game engine
#30Very cool. For your next project, how about a DIY 2D EM field solver? You've done a lot of the work already.