News for hackers. Stuff that matters.
Re:WebGL Fluid Simulation by doctorhandshake on Sunday December 29, 2024 @10:36AM (#42540545)
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.
Re:WebGL Fluid Simulation by snaily on Sunday December 29, 2024 @05:22PM (#42543931)
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 by doctorhandshake on Sunday December 29, 2024 @08:12PM (#42545353)
Wild! Just saw that at the top of the front page and thought ‘dang is HN reading my mind today??’

Thanks for the link!

Re:WebGL Fluid Simulation by tlarkworthy on Sunday December 29, 2024 @06:12PM (#42544409)
oh wow, they have the fluid demo too!!! Thats so much better!

https://scrtwpns.com/mixbox/fluids/

Re:WebGL Fluid Simulation by bj-rn on Monday December 30, 2024 @03:28AM (#42547549)
Spectral.js might also be interesting. It comes with a GLSL implementation of Kubelka-Munk and is MIT.

https://github.com/rvanwijnen/spectral.js