Login  Register

Re: TextRender only work after reshape with GL_TEXTURE2 binding

Posted by Martin on Jun 13, 2022; 4:07pm
URL: https://forum.jogamp.org/TextRender-only-work-after-reshape-with-GL-TEXTURE2-binding-tp4041609p4041776.html

Thanks for the info, will be useful for sure to me later !

It is probably an implicit requirement from this text renderer that is often fulfilled but not in your case. I have the same kind of weird behavior with the Overlay class that requires the polygon mode to be reset to « fill » before being invoked.

The legacy text renderer has another limitation for me : when I mix it in an application using shaders (e.g depth peeling extension in Jzy3D), characters are replaced by squares, so I use the simple Glut text renderer in this case.

Julien once mentionned a pull request on Sven ‘s github that shows improvement to the text renderer that finally was never merged.