Live data from Hacker News

Rasterizer: A GPU-accelerated 2D vector graphics engine in ~4k LOC

github.com

1–10 of 58 posts

Re: Rasterizer: A GPU-accelerated 2D vector graphics engine in ~4k LOC

#6
Congratulations!

Can you say how the it's similar and how it's different to superficially similar sounding work?

(1) https://github.com/linebender/vello , dual Apache/MIT, by Raph Levien et al

(2) https://sluglibrary.com/ , proprietary, by Eric Lengyel (Terathon)

Re: Rasterizer: A GPU-accelerated 2D vector graphics engine in ~4k LOC

#10
post #2

I've been working on this problem on and off for over 10 years. AMA ;-)

So what part of the SVG-spec does this implement? Does it support text? Gradients? Filters like blur and dropshadow?

None of that yet. The underlying SVG library, nanosvg, is very simple with no text support.

The first priority was to solve paths to pixels efficiently, including text (50,000 glyphs @ 60fps).

Gradients will be added when time allows, as I have code from a previous engine.

The coverage algorithm can be extended to support cheap box blurs, which could be used for drop shadows.

Post reply on HN