This patch adds anti-aliasing of fonts to improve the rendering quality in the game engine.
It also fixes a z-order bug with overlapping text.
This patch was done by z0r (Alex Fraser) T29882
This patch adds anti-aliasing of fonts to improve the rendering quality in the game engine.
It also fixes a z-order bug with overlapping text.
This patch was done by z0r (Alex Fraser) T29882
source/blender/blenfont/intern/blf_glyph.c | ||
---|---|---|
179 | This modification was done by Alex Fraser (z0r). I think it is related to his comment in T29882 at Jan 18 2014. Alex Fraser (z0r): | |
322–340 | I am unsure about this. Should I make new draw function BLF_draw_3d > blf_font_draw_3d > blf_glyph_render_3d > blf_texture_draw_3d functions? |
Would rather postpone this patch,
its nice to have, but not really essential and theres many more urgent areas of the BGE to work on.
source/blender/blenfont/intern/blf_glyph.c | ||
---|---|---|
322–340 | The callers of blf_texture_draw could check for BLF_TEXFILTER. |
@Mike Erwin (merwin) : Is an equivalent of this feature (mipmap generation of text textures) existing or planed for the 2.8 viewport ?
I don't know what is planned for the 2.8 viewport. But I think they will not add a font texture filtering.
@Porteries Tristan (panzergame) Nothing like this is planned for the 2.8 3D viewport or 2D UI. We always draw screen-aligned text at a known size/scale.
source/blender/blenfont/intern/blf.c | ||
---|---|---|
527–528 | Alpha test is not part of OpenGL core profile, so this would be ok for Blender 2.7x but not for 2.8+. |