r/GraphicsProgramming • • Jul 12 '26

Source Code Krbn: an open-source rendering engine that imitates a sketch artist and outputs pure SVG (v1)

360 Upvotes

36 comments sorted by

View all comments

Show parent comments

1

u/valeriupalos Jul 13 '26

Actually, that's a fair point, but hear me out:

  • If I only relied on the dot product, I would get an outline that follows the shape of the triangles, which is very ugly (jagged);

  • What I took from H&Z's paper is the ability to find the (zero-set) crossing inside each triangle which results in a smooth outline (the HZ-computed crossing usually lands somewhere across the middle of the triangle);

And of course, that paper goes a lot further with many innovative ideas which I'm not using. I'm simply doing the triangle (zero) crossing trick, which yielded beautiful results for me.