Hello,
I played around to create offscreen-Images for a server-client app using the common glreadpixels with the standard canvas (Thanks to the Forum). The problem is that first of all, when i try to create an offscreen-image, the render-process depends on the canvas and its container and is sometimes not rendered probably.
Anyway, i read that there is another way to create offscreen-images using the pbuffer.
I found a code-snippet in the forum describing pbuffers on macos, but it does’t ring a bell so far.
So what i’d like to know is:
- How do i establish the pbuffers correctly to make them work (How to establish the display() for the pbuffer correctly)
- How to use glreadpixels with the pbuffer to create a bufferedImage from the pbuffer.
I hope that anyone can help. I searched the web a lot, but it seems there is no much reference or documentation on jogl. So i hope again, i’ll find some help in this great forum.
Thanks in advance,
Chris