Login  Register

Re: com.jogamp.graph.curve.opengl.TextRenderer without shader?

Posted by aqd on Aug 05, 2014; 6:23pm
URL: https://forum.jogamp.org/com-jogamp-graph-curve-opengl-TextRenderer-without-shader-tp4032687p4032716.html

The slowness is with AWT renderer of course. But no more problem now since I pre-render all text in separated thread and give the cache texture max size (16384x16384) per each TextRenderer.

The curve renderer is very fast at rendering the same numbers of text (first-time rendering). I also made it to work without shader successfully: the matrix/position/scale are all fine, and color has to be set via glColor4fv instead of TextRenderer.setColorStatic, and GL_BLEND has to be enabled for translucency to take effect.



PS: I'm more interested in getting curve TextRenderer to work with chinese fonts, or porting AWT renderer to SWT or something faster. But right now I only have time for fast & ugly hacks to make everything looking smooth and acceptable....