Login  Register

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by Andreas on Oct 29, 2015; 7:43am
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035653.html

Hi,

I not sure what is a typical usecase in sense of a 3D library. But I know what I did with a Raster. It is used in the RasterTextLabel class (http://svn.j3d.org/code/trunk/src/java/org/j3d/renderer/java3d/geom/RasterTextLabel.java), which I used as a basis to display AttributedStrings. This is needed for my application to label coordinate system axis. You can see examples at the images realized with Java3D.





These are just BufferedImages with transparent backround and drawn AttributedStrings, which always has the same size on the screen no matter of the distance from the camera/screen.

I thought about using the BMText which seems to be able to do this. But it would be to be able to use the system/default application font and I need sub- and superscripts.

The coordinate system is one of the last things to finish the replacement of Java3D with Jogamp's Ardor3D continuation. Due to the use of Jogamp's Ardor3D continuation the code is much simpler. Really nice to work with and thanks to all. An example image of the application is shown below..

An other question is, how would you realize a gradient paint in the background. Using Java3D I used the Background class. I wasn't able to find an example in Jogamp's Ardor3D continuation.