converting from Sun's jogl to jogamp's jogl -- HELP
Posted by Alexandra on Mar 22, 2011; 5:37pm
URL: https://forum.jogamp.org/converting-from-Sun-s-jogl-to-jogamp-s-jogl-HELP-tp2715969.html
I have a large application that uses Sun's old jogl. It has multiple GLCanvases in a multi-panel display. The app shows a
volume rendered view in one panel, and three orthogonal views below in three different panels. Each has a different GLCanvas. The GLCanvases share texture memory, vertex buffer memory, index buffer memory, shaders on the GPU. I also use multiple framebuffers for the volume rendering and displaying multiple semi-transparent surfaces.
When I try to convert to jogamp's jogl (using the latest release build). The shared context breaks -- either I get an exception or just a black window. The exception is something like 'trying to use GL with a context that didn't create it'. The shared context is essential to my application since everything I display shares the same textures, vertex buffers, etc.
I tried creating a pbuffer to store the shared context (based on an earlier post), but this didn't work for the window that uses the framebuffer for volume rendering or for multiple semi-transparent surfaces.
I tried NEWT but there doesn't seem to be a way to put the GLWindow into a multi-panel display.
So is there a way to do what I used to do with Sun's jogl? Shared contexts, multiple GLCanvases or GLWindows in a multi-panel display.
Please help -- I'm about to give up on jogamp.