Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by seveibar on Thursday June 05, 2025 @01:24AM
(#44188530)
The goal for this vanilla TS renderer is to have visual diffing on GitHub and a renderer that works without a browser environment. Most 3D renderers focus on realtime speed, not file size and runtime portability. I think in practice we will configure the subdivisions at something like 64 for a good file size tradeoff
[ Parent
| on HN ]
Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by kookamamie on Thursday June 05, 2025 @03:21AM
(#44189216)
Why use SVG for this, though? This could be easily implemented as pure JS software rasterizer without all the tessellation workarounds.
Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by ricardobeat on Thursday June 05, 2025 @07:54AM
(#44190719)
> The goal for this vanilla TS renderer is to have visual diffing on GitHub and a renderer that works without a browser environment
Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by itishappy on Thursday June 05, 2025 @10:03AM
(#44191820)
This doesn't answer the question. If you're doing all this work in JS to render a static SVG, why not just "do it right" and output a static PNG instead?
Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by seveibar on Thursday June 05, 2025 @10:28AM
(#44192070)
The top of the PCB (the lines etc) are computed as an SVG, i would have to have an SVG rasterizer just to begin with that approach, then would be limited by what images I could rasterize. It would also be much much slower than quickly computing matrices
Re:Show HN: I made a 3D SVG Renderer that projects textures ...
by jahewson on Thursday June 05, 2025 @01:00PM
(#44193477)
You might find that librsvg works for you.