Login  Register

Re: [TextRenderer] Using depth test in 2D mode

Posted by Demoscene Passivist on Dec 14, 2010; 7:45pm
URL: https://forum.jogamp.org/TextRenderer-Using-depth-test-in-2D-mode-tp2084831p2087573.html

When u use the default "beginRendering(int width, int height)" depth-test is implicitly disabled by TextRenderer. If u want to control depth-testing u have to use "beginRendering(int width, int height, boolean disableDepthTest)" and enable depth-testing explicitly.

edit: ... and btw when using the 2D mode of TextRenderer the text billboards all lie at 0.0 z. If u want to change the z value of ur text billboard u have to use draw3D().