| 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
19 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
validation-br 2.0: Validação em TypeScript, zero dependências
Frontend
52
Dev.to (EN Zone)
The same one-line table-parsing bug turned up in five separate tools. I fixed it four times.
Frontend
40
DEV Community
How to Price Web Design Projects: A Practical Guide for Freelancers
Frontend
36
Dev.to (EN Zone)
Post Apache Ossie, what distinguishes semantic layers?
Frontend
41
Dev.to (EN Zone)
Comments0
No comments yet — be the first