3 ms·
A while back I put a lot of work into doing 3D implicit surfaces in Swift and Metal (Apple’s low level graphics framework). I put together this video to show w
by gdubs 6y ago
A while back I put a lot of work into doing 3D implicit surfaces in Swift and Metal (Apple’s low level graphics framework).
I put together this video to show what’s going on in the process:
https://www.instagram.com/p/BwGgYyQgCO1/?igshid=1cvb4smiik3i9 https://www.instagram.com/p/BwGgYyQgCO1/?igshid=1cvb4smiik3i...
A little more polished and optimized “lava lamp” type loop:
https://www.instagram.com/p/By9er1LFRKt/?igshid=iu9ouexd7tvs https://www.instagram.com/p/By9er1LFRKt/?igshid=iu9ouexd7tvs
Most of it was standing on the shoulders of Tim Bourke’s work [1] and making it all work in GPU shaders.
As others have mentioned, Ray Marching is also a nice approach if you don’t need polygons — you can get some really impressive and smooth effects.
1: http://paulbourke.net/geometry/implicitsurf/ http://paulbourke.net/geometry/implicitsurf/