Interested to know what we’re the main challenges.
-
-
Replying to @jcampbell_05 @EricLengyel and
You mean the challenges of rendering fonts on the GPU? Makepad as far as I know draw glyph per glyph from an atlas. Slug is the only one to my knowledge to do 100% on the GPU side.
2 replies 0 retweets 1 like -
Replying to @batmansmk @jcampbell_05 and
The glyph atlas is gpu rendered. I used to use glyphy to render fonts but real gpu vectorrendering can be slow.
2 replies 0 retweets 3 likes -
Replying to @rikarends @batmansmk and
Real GPU vector rendering with high quality is very fast now that we have the Slug algorithm. It's about 25 times as fast as Glyphy, and it doesn't have Glyphy's artifacts. Times needed to completely fill 4K screens with text are on the order of tenths of a millisecond.
1 reply 1 retweet 6 likes -
Replying to @EricLengyel @rikarends and
Woot! Is it cheap in terms of power as well?
1 reply 0 retweets 1 like -
Replying to @batmansmk @rikarends and
Haven't measured. If you keep re-rendering text, then probably not.
1 reply 0 retweets 2 likes -
Replying to @EricLengyel @batmansmk and
The piet-metal algorithms will probably be similarly fast and high quality, and will be open source, but I haven't seriously started in on font rendering yet. Also Pathfinder 3 is up there.
1 reply 0 retweets 0 likes -
Replying to @raphlinus @batmansmk and
There are situations in which many approaches break down rather badly, but they’re largely ignored until you see the failure case. For example, most algorithms don’t handle minification well and thus have aliasing problems in 3D environments. Claims of quality are often oversold.
1 reply 0 retweets 1 like -
Replying to @EricLengyel @batmansmk and
Both piet-metal and Pathfinder 3 do exact-area calculation, and don't depend on hardware for antialiasing. Also, piet-metal pays special attention to doing alpha blending in a linear color space. My goals include better quality than people currently expect.
1 reply 0 retweets 2 likes -
Replying to @raphlinus @batmansmk and
It's not area calculation that causes minification problems. It's the need to account for arbitrary numbers of Bézier curves per pixel. There's also the requirement for dynamic polygon dilation so ensure that pixels near curve extrema are antialiased correctly at all scales.
2 replies 0 retweets 2 likes
It sums exact-area calculation for all line segments, similar to Pathfinder 3 and font-rs (and libart before then). Right now it's flattening Bézier to lines on CPU, but I want to move that to GPU, using my new near-optimum flattening algorithm.
-
-
Replying to @raphlinus @EricLengyel and
Piet-metal is at heart a software renderer that happens to be running on GPU, as a compute kernel. It has little resemblance to Loop-Blinn or any other technique running in the rasterization pipeline (nor their performance and quality issues).
1 reply 0 retweets 2 likes -
Replying to @raphlinus @batmansmk and
When you say flattening, does that mean calculating a straight line inside a pixel's footprint? Am I correct in concluding that rendering text in a 3D environment (where glyph size and perspective could be changing at 60 fps) is not one of your design goals?
1 reply 0 retweets 0 likes - 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.