| 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] [留言] |
General![[Showoff Saturday] An experimental melting library for WebGL](/storage/uploads/covers/2026/09/e062c8bc-1404-4f18-ac9a-b529902335d9.webp)
Read original: https://www.reddit.com/r/webdev/comments/1we6jgr/showoff_saturday_an_experimental_melting_library/
[Showoff Saturday] An experimental melting library for WebGL
0 views
![[Showoff Saturday] An experimental melting library for WebGL](/storage/uploads/covers/2026/09/e062c8bc-1404-4f18-ac9a-b529902335d9.webp)
Previous[Showoff Saturday] A new portfolio page!Next[Showoff Saturday] Asili - locally calculated personal DNA trait scorer and gene explorer
Related posts
Vellinko – Sign PDFs in the browser without uploading them
0Hacker News New
Show HN: Vivio House, an interactive 3D headquarters
0Hacker News New
Pushover – Simple Notifications
0Hacker News New
The Gift of It's Your Problem Now (2021)
0Hacker News New
Implied News: News X Prediction Markets
0Hacker News New
Show HN: OpenDocBot - bring your own model to Word, Excel and PowerPoint
0Hacker News New