exellian / rui

Rust framework for building modern ui
3 stars 0 forks source link

Cubic Bezier Rendering kokojimas method #56

Closed exellian closed 1 year ago

exellian commented 1 year ago

Currently I Implemented a slightly different version of kokojimas method for rendering cubic beziers https://dl.acm.org/doi/10.1145/1179849.1179997.

The problem is that the described antialiasing method relies on msaa which is not good enough for small curves. Therefore I want to implement a mix of loop/blinns method and kokojimas method. My idea is to use the triangle fan method in kokojimas paper to render the triangulated inner shape of loop/blinns method. And then render the curves with loop/blinns method. Essentially only using the stencil buffer for the inner shape and not for the curves. The advantage is that we don't rely on alpha to coverage antialiasing for curve segments and instead can use direct alpha interpolation at the edges.

exellian commented 1 year ago

Closing this issue for now because of #58