objective c - Printing vector graphics from Metal on OSX -
is possible output vector graphics metal api?
especially in regards rendering fonts/text.
the trouble using signed-distance fields (as described in chris green's 2007 paper "improved alpha-tested magnification vector textures , special effects") require rasterize glyphs @ finite resolution , reconstruct glyph outline in shader, can lead reduced fidelity. there have been strong advances in field lately, such viktor chlumský's work on using multi-channel sdf textures maintain sharp edges.
there has been lot of work in last decade on using gpus render implicit curves more directly, of derived loop & blinn's "resolution independent curve rendering using programmable graphics hardware" (2005), written in gpu gems 3. robust implementation of glyph rendering gpu-only rasterization know of 1 in glyphy. dobbie has written impressive webgl demo uploads glyph outline parameters texture , rasterizes purely on gpu, briefly described here.
also, i'd remiss if didn't mention matt deslaurier's work in area. can view of demos here.
in conclusion, post/book (mentioned in marius' answer) show basic implementation of sdf font rendering in metal, of above-listed techniques should straightforward implement in metal once understand ideas, , of them produce better results.
Comments
Post a Comment