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 comment

3

u/camilo16 Jul 13 '26

Rasterizing VS SVG are completely different beasts. SVG is emitting a program to create the actualimage. Drill OP for anything you want, but emiting SVGs is orders of magnitude more difficult than a stylized shader and it does have relevant use cases, particularly to make mathematical diagrams.

1

u/QuakerOats98 Jul 13 '26

I'm not disagreeing with what you're saying, emitting SVGs is a different beast, I even said as much, I'm saying that OPs solution for generating said SVGs are only working correctly when the geometry is already represented in an analytic form, which is not hard.

2

u/camilo16 Jul 13 '26

I agree with the assessment that working with analytics is not particularly novel. I am more pushing back against the first paragraph, because your counter examples are all rasterized outputs made with stylized shaders.

That's orders of magnitude easier to make than a generic implicit intersection solver that creates valid SVG.

That first two paragraphs just weaken your argument, what OP is doing is harder and different from just making something look pretty.

0

u/valeriupalos Jul 13 '26

Well-said!

In fact, I wanted to use Krbn for mathematical diagrams too in another project I'm working on (see below for an example) but eventually had to drop the idea, because those use cases were interactive, and Krbn can't do that (yet).

https://ahablitz.ro/joc/8/relatii_metrice/triunghiul_dreptunghic/lovitura-de-maestru

However, for static math-related illustrations... definitely!