Login  Register

Re: JOGL + Swing + Multiple viewports

Posted by gouessej on Jan 16, 2018; 9:08am
URL: https://forum.jogamp.org/JOGL-Swing-Multiple-viewports-tp4038537p4038543.html

Hi

You can use NewtCanvasAWT with Swing. I'm not sure that you need to use offscreen rendering and if you needed to do so, you should use FBOs instead of PBuffers because they're better supported under several operating systems. You can call GLAutoDrawable.display() directly, use a custom animator or use a build-in one but if I were you, I would use active rendering if and only if it improved the performance. It's the same for offscreen rendering, you can render the scene into a FBO and reuse it later but ensure that it's worth the effort. To sum up, keep it simple and avoid early unneeded optimization.

By the way, feel free to share some information about your project with us, I'd like to try your level editor :) Have you implemented any algorithm to compute PVS?
Julien Gouesse | Personal blog | Website