servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.54k stars 198 forks source link

[Question] Can pathfinder render text on a curved surface like a cylinder? #508

Closed lostmsu closed 2 years ago

lostmsu commented 2 years ago

I am looking for a way to display text around user in VR in a manner a curved monitor would do. I understand that pathfinder can easily rasterize text to put on a 3D plane, but is it possible to get nicely rendered text on a wall of a cylinder?

s3bk commented 2 years ago

You can probably cheat by computing where each glyph would end up and then draw each glyph on a separate plane.

lostmsu commented 2 years ago

That's an excellent idea! It is not an exact solution, but might just be good enough, thanks.