GLJPanel to PNG

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GLJPanel to PNG

josandres
Hi,

I am working on a project that shows geospatial data using worldwind Java library. We are currently working of the generation of PNG images that displays different locations.

As worlwind relies on JOGL underneath for rensdering its contents, I wirte you to ask for a way of exporting displayed data to PNG. Furthermore, if PNG generation can be done headlessly without the need of displaying the GLJPanel.

We have triaed several way but we only get black images after all.

Thanks a lot in advance.
Reply | Threaded
Open this post in threaded view
|

Re: GLJPanel to PNG

gouessej
Administrator
Hi

You can use com.jogamp.opengl.util.GLReadBufferUtil to do it but gov.nasa.worldwindx.examples.util.ScreenShotAction already does what you want.
Julien Gouesse | Personal blog | Website