webgl-operate icon indicating copy to clipboard operation
webgl-operate copied to clipboard

labeling: mipmap for glyph textures

Open anne-gropler opened this issue 6 years ago • 4 comments

Create mipmap glyph textures and use them for rendering. Evaluate performance and visual result, comparing to /combining with anti-aliasing methods.

anne-gropler avatar Oct 11 '18 14:10 anne-gropler

As far as I understand SDFs, it should neither result in better performance nor quality ... (even added memory overhead). Only for plain bitmap based glyphs mip mapping could be useful. But then again, the mip maps should be generated by an asset generator explicitly instead of just down scaling.

cgcostume avatar Oct 12 '18 08:10 cgcostume

I understand that, too. But the following ressource implies that mipmapping is a good idea: libgdx But this might be use-case-specific to libgdx.

Yes, it requires an asset generator that supports mipmaps. Could be an issue for the OpenLL Asset Generator.

Do you think it is worth it? I think there are more important issues.

anne-gropler avatar Oct 12 '18 10:10 anne-gropler

hmm. Ok. It's not hard to test. Lets test this when rendering in one of the use cases works and decide based on the results.

cgcostume avatar Oct 12 '18 12:10 cgcostume

A variation of this could be interesting: apparently, some font designs have variations in the font face depending on the font size, see optical sizes. So the idea is, could we offer a variated "mipmap" with those font face variations? Or is this out of scope?

anne-gropler avatar Oct 19 '18 11:10 anne-gropler