| Still work in progress. It is originally created for the browser game I'm working on but decided to publish it as a standalone library. There's different presets aswell, like Tar, Chocolate, Wax, Honey, Solder etc. The picture gets treated as a body of material and run through a 2D free surface Navier-Stokes solver on the GPU. Temperature drives viscosity across about four decades, so the same code covers a solid that barely creeps and a liquid that runs off the screen. The outline of the picture is a level set the solver actually solves for, which is why drops swell, neck and detach on their own instead of just stretching. The image itself rides on a reference map, a second field that stores where each cell started, so it deforms with the material instead of turning to mush from repeated resampling. You can check the source code @ https://github.com/1etu/MeltGL and the live demo @ https://1etu.github.io/MeltGL/ Still working on the polishing and an ability to melt DOM elements. [link] [留言] |
Frontend
Read original: https://www.reddit.com/r/webdev/comments/1we6jgr/showoff_saturday_an_experimental_melting_library/
[Showoff Saturday] An experimental melting library for WebGL
/u/etulastrada Reddit r/webdev
2 views
← Previous
Monitoring Jetson CPU, GPU, Temperature and Power from a Flutter Robot Dashboard
Next →
WebSocket Telemetry at Scale: When One Process Isn't Enough
Related
I Built a Documentation Tool in 48 Hours (While Running a Code Jam)
Frontend
0
Dev.to (EN Zone)
I built vue-pdf-export - a Vue 3 PDF Export library for real-world browser apps
Frontend
0
DEV Community
Google Authentication in ASP.NET Core with React
Frontend
0
Reddit r/programming
[Showoff Saturday] A new portfolio page!
Frontend
3
Reddit r/webdev
Comments0
No comments yet — be the first