News for hackers. Stuff that matters.
Re:Metaballs and WebGL by yoklov on Friday July 15, 2016 @08:33PM (#12104655)
Metaballs are great! Here's demo I wrote a while back that does them, but in a slightly hacky way for performance reasons (and it performs pretty well!) http://codepen.io/thomcc/pen/vLzyPY

Basically, each "ball" is a 2d gradient texture, i render them all to a framebuffer, and then do a postprocessing pass which applies a threshold (not strictly binary so as to get some antialiasing) to the gradient, rendering the isosurface.

(And I also have a 3D pen, which does the more legit marching-cubes approach: http://codepen.io/thomcc/pen/NGmmPB )

Re:Metaballs and WebGL by spyder on Saturday July 16, 2016 @08:04AM (#12106081)
The 2D one doesn't work in Firefox for me, because instead of the balls I just see blue rectangles.
Re:Metaballs and WebGL by yoklov on Saturday July 16, 2016 @02:11PM (#12107308)
Very strange (and somewhat embarrassing! I work on Firefox). It works fine in Firefox for me. Can you give any more information about your platform?