Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI
Posted by
gouessej on
Oct 29, 2015; 9:19am
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035656.html
Hi
You can just draw a quad as a background (it's very close to what is done in plain JOGL), you have to draw it before the rest of the scene and to disable the depth test.
I'm almost sure that there is something doing the same than RasterTextLabel.java in ardor3d-ui but I'm reluctant to use the default/system font as there is a clear separation between AWT and NEWT in the engine so if it is doable, it will rely on a separate code path to avoid forcing the use of AWT everywhere. I'll have to investigate a bit more... There is another solution to render TrueType fonts with JOGL and AWT, look at the issues on Github.