Re: TextRender only work after reshape with GL_TEXTURE2 binding
Posted by
yaqiang on
Feb 05, 2022; 3:34am
URL: https://forum.jogamp.org/TextRender-only-work-after-reshape-with-GL-TEXTURE2-binding-tp4041609p4041621.html
Thanks for your information! Polygon mode configuration is not the reason of this problem. All the texts were rendered well except the render form displayed first time. Resize the render form will make the problem disappear. And the problem only occurred when GL_TEXTURE2 binding. The test code of the problem:
https://github.com/meteoinfo/MeteoInfo/blob/master/meteoinfo-chart/src/test/java/VolumeTest.java.
In MeteoInfo, I didn't have the problem with the mixing volume and polygon rendering. The following example renders country polygons and the volume of w of wind field. The polygons were rendered well behind the volume. The problem of it is that I have to resize the figure dockable region to make the texts plotted.
www.meteothink.org