TextRender only work after reshape with GL_TEXTURE2 binding
Posted by yaqiang on Jan 30, 2022; 7:36am URL: https://forum.jogamp.org/TextRender-only-work-after-reshape-with-GL-TEXTURE2-binding-tp4041609.html
I am developing volume 3D visulization functions in MeteoInfo reference the code from https://github.com/RolandR/VolumeRayCasting and https://github.com/mahdilamb/VolumeRendering. For specular ray casting, there are three textures of volume data, colormap and normals. I am facing the problem that rendering the data first time the texts were not plotted until I changed the size of the plot frame which tricks reshape event.
Create the frame and plot specular volume first time. The texts were not plotted.
The texts were plotted when I change the size of the frame.
The texts were plotted using TextRender. It seems that the problem is related with the GL_TEXTURE2 binding because it is ok when the third texture of normals was not used.