Re: Text without AWT?Solved!
Posted by adi on Mar 06, 2017; 8:22am
URL: https://forum.jogamp.org/Text-without-AWT-tp4037684p4037735.html
Hello
After some tests i have found
the problem, it was the fontsize in
textRegionUtil.drawString3D(gl, regionRenderer,/* Font */ font, fontSize, "Hello", null, sampleCount);
The font can't be set to a normal fontsize e.g. 32.0f, ist gigantic:-)
Better setting is from 0.2f and lower.
The other problem was the coordinates for the screen [-1,1][-1,1].
(A bit text for that over the class .........)
Its good for drawing about a scene but not for drawing in a scene as an 3D object.
For that, i must use shaders.