davepagurek / PipeRender

Render 3D pipes to SVG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PipeRender

I was interested in making and printing a generative art poster for myself. To print at arbitrary sizes, I wanted to export to a vector format like SVG, but I was also interested in rendering 3D content, so this project was born to bridge that gap.

At its core, this is a library to render 3d lines with a given radius into a 2D SVG. To apply effects like focal blur, after projecting the lines into 2D, it divides them up into a series of short segments that can be independently coloured and blurred. The resulting SVGs are kind of huge unfortunately, due to them having a lot of tiny paths, all with their own blur filters.

About

Render 3D pipes to SVG


Languages

Language:JavaScript 95.1%Language:HTML 3.6%Language:CSS 1.3%