
Dev turns gpu-melting shader scenes into pen-plotter svgs: because nothing screams 'weekend productivity' like marching squares for moebius doodles
A developer has created a tool called svg-sdf-art, which converts 3D scenes from fragment shaders into stylized SVG files for pen plotter machines. The process involves rendering the scene in three versions: using surface normals, distance information, and unique objects. These buffers are then used to perform marching squares, highlighting silhouettes and faces of shapes. The final step adds random lines to give a sense of depth and distance. The output is an SVG file designed for A4 paper, inspired by the art style of Moebius. This innovation has implications for the graphics and art industries, particularly in the field of generative art. The use of SVG files allows for high-resolution and scalable output, making it suitable for various applications. The developer's approach demonstrates the potential of combining 3D rendering techniques with traditional art styles, opening up new possibilities for artists and designers. The project showcases the versatility of fragment shaders and their potential in creating complex, detailed scenes.