Re:Improving the foundation of our falling sand simulator
by jasonjmcghee on Tuesday May 17, 2022 @08:56PM
(#31418066)
I thought treating fractional velocity as the probability to move was a fun hack. Unlike rounding, it makes it feel a bit more fluid as the batch of particles placed at a time step move two different distances.
Re:Improving the foundation of our falling sand simulator
by jasonjmcghee on Tuesday May 17, 2022 @05:49PM
(#31416688)
The light mode bugs should now be fixed. Apologies for that.
Re:Improving the foundation of our falling sand simulator
by jakear on Tuesday May 17, 2022 @06:22PM
(#31416964)
Works great!
Re:Improving the foundation of our falling sand simulator
by jasonjmcghee on Tuesday May 17, 2022 @05:37PM
(#31416584)
Oh no! I clearly have a bug. I develop in dark mode and apparently broke something during this post and didn't verify light mode. I will look into it now!
I notice on my machine the background is initially white and only acquires the grey background color after a sand has fallen past a given pixel. I encountered the same bug when building my own version off of this from your last post, my fix was to initialize the dirty set to be the full set of indexes for the first frame. Also, some of the buttons are pure white, the text is invisible. (I suspect both of these are light mode only bugs)