Fix T35606: Font object visible through object with Z transparency set at zero
Render 3D fonts before the scene in KX_KetsjiEngine::RenderFrame (KX_KetsjiEngine.cpp)
Differential D1537
Fix T35606: Font object visible through object with Z transparency set at zero Authored by Ulysse Martin (youle) on Oct 2 2015, 3:02 PM.
Details Fix T35606: Font object visible through object with Z transparency set at zero Render 3D fonts before the scene in KX_KetsjiEngine::RenderFrame (KX_KetsjiEngine.cpp)
Diff Detail Event TimelineComment Actions @Ulysse Martin (youle): I'm not totaly agree with your patch. If the user want that a font be rendered after meshes ? A better fix will be to add a mode to select the font render order. e.g: font.renderOrder = KX_FontObject::RENDER_PRE / RENDER_POST And the same kind of thing in UI. Comment Actions I'm not certain this is the correct fix. We need to figure out why the font objects are not interacting correctly with alpha polygons. How do fonts currently interact with the depth buffer? Comment Actions Hi! Comment Actions In DisableForText() function, GL_ALPHA_TEST is disabled. This causes this issue with my patch when the text is in front of plane: http://www.pasteall.org/pic/93763 So I re-enabled it in RenderText3D and it works: http://www.pasteall.org/pic/93762 Of course it needs review because I'm not sure of what I make...
Comment Actions Hi, I've just seen this bug report: https://developer.blender.org/T29804 . @Dalai Felinto (dfelinto): I didn't understood all, but do you think reanable alpha_test to render fonts is a bad idea? Using GPU_set_material_alpha_blend(GPU_BLEND_ALPHA_SORT); is better? Thanks! | ||||||||||||