vger-rs

2D GPU renderer for dynamic UIs (by audulus)

Vger-rs Alternatives

Similar projects and alternatives to vger-rs based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better vger-rs alternative or higher similarity.

vger-rs reviews and mentions

Posts with mentions or reviews of vger-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-10.
  • Vector Graphics on GPU
    10 projects | news.ycombinator.com | 10 Aug 2022
    I've done a library for vector graphics on the GPU which works pretty well for my uses:

    https://github.com/audulus/vger

    and a rust version:

    https://github.com/audulus/vger-rs

    (which powers my rust GUI library: https://github.com/audulus/rui)

    Here's the approach for rendering path fills. From the readme:

    > The bezier path fill case is somewhat original. To avoid having to solve quadratic equations (which has numerical issues), the fragment function uses a sort-of reverse Loop-Blinn. To determine if a point is inside or outside, vger tests against the lines formed between the endpoints of each bezier curve, flipping inside/outside for each intersection with a +x ray from the point. Then vger tests the point against the area between the bezier segment and the line, flipping inside/outside again if inside. This avoids the pre-computation of Loop-Blinn, and the AA issues of Kokojima.

    It works pretty well, and doesn't require as much preprocessing as the code in the article. Also doesn't require any GPU compute (though I do use GPU compute for some things). I think ultimately the approach in the article (essentially Piet-metal, aka tessellating and binning into tiles) will deliver better performance, and support more primitives, but at greater implementation complexity. I've tried the Piet-metal approach myself and it's tricky! I like the simpler Shadertoy/SDF inspired approach :)

Stats

Basic vger-rs repo stats
1
227
7.8
4 months ago

audulus/vger-rs is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of vger-rs is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com