Zpup is a small JavaScript library: describe a 3D scene as JSON, get a flat SVG from any angle.
Output: plain SVG with no JavaScript, so it works in img tags, emails and READMEs.
Sorting: compares overlapping shapes pairwise to decide which is in front. The page says Zdog gets 2.9% and 4.2% of shapes painted in the wrong order in its benchmark, Zpup 0.4% and 0.3%.
Limits: no perspective, no textures, and solids that cut into each other aren't drawn correctly.
Sign in to comment.
TL;DR of the article, generated automatically.
Zpup is a small JavaScript library: describe a 3D scene as JSON, get a flat SVG from any angle.