Earlier quoted context omitted.
How difficult would it be to prevent the ink from disappearing? Any tips would be appreciated, I'd love to integrate this into a drawing app.
very easy, its a free parameter in the simulation see the "Ink dissipation" slider, you can set it to > 1 for some weird effects.
WebGL Fluid Simulation
51–60 of 61 posts
Re: WebGL Fluid Simulation
#52Re: WebGL Fluid Simulation
#53Does anyone know of more examples of water simulations in WebGL? I’m looking for ways to implement waves with foam. I love Evan’s Pool demo. https://madebyevan.com/webgl-water/
Was reading somewhere that one isn't a simulation. Rather super clever tricks to make it look like water, swimming pool, a thing in it.
Still very, very cool.
Re: WebGL Fluid Simulation
#54Earlier quoted context omitted.
This was the first thing I did when I wrote a fluid sim as well - I’ve spent a ton of time and energy pursuing ways to get subtractive color effects (the richness and light-subjectivity of pigment) in digital artifacts and have mostly come up empty, but I take every chance I can get.
Have you checked out mixbox[0]? The outputs do feel intuitively "right" as someone who has dabbled in watercolor, and the paper/videos cover the thinking and Kubelka-Munk theory well. [0] https://github.com/scrtwpns/mixbox
Re: WebGL Fluid Simulation
#55Re: WebGL Fluid Simulation
#56I have an HDR monitor and OMG it's so bright it's almost painful. So beautiful!
I have an OLED display too. SDR content looks really good on OLED displays because of the incredible contrast. It might appear HDR but is SDR.
Re: WebGL Fluid Simulation
#57Sebastian Lague recently created a related video for those interested in rendering fluids: https://www.youtube.com/watch?v=kOkfC5fLfgE
Re: WebGL Fluid Simulation
#58Earlier quoted context omitted.
Is that not navier-stokes ?
You can derive naviger stokes from newtons laws, or I suppose some conversation laws.
If navier-stokes equations can be derived from Newton's laws, then Newton's laws can be derived from Galileo, Archimedes before him, even some older thinkers before them.
Newton ignored viscosity, and density. He made some discoveries on fluid dynamics but his famous laws only apply to solid objects. Same for velocity, he knew about that of course but only worked it out for solids. Ignoring two critical components meant he didn't establish relations between them either.
That's my read.
Not to dismiss credits to Newton, who's is in another league than navier and stokes. In his own league even. He probably would have figured out what was only solved centuries later had he explored further, or had he benefited from perhaps just a few other later discoveries.
But that's dismissive of navier-stokes significant discoveries on fluid dynamics to not simply give them credit for the formula behind this simulation.
Oh, did you mean conservation?
Re: WebGL Fluid Simulation
#59Earlier quoted context omitted.
very easy, its a free parameter in the simulation see the "Ink dissipation" slider, you can set it to > 1 for some weird effects.
No such slider on mine. ( https://i.imgur.com/m1tODYK.png )