Hello all -
I’m pretty new at this, so I may be lacking some fundamental understanding. I have a system that creates a GLCanvas, adds it to a frame, and animates nicely. I can even capture the image to a bitmap.
What I really want to do, though, is actually render and capture the image offscreen without ever displaying the fame. I have tried two things with no success:
-
Simply don’t make the frame visible. In this case the background of my desktop gets drawn into the areas of the GLCanvas where my nice rendering is supposed to be.
-
Create a pbuffer for offscreen rendering. I get the following exception
net.java.games.jogl.GLException: Method “wglChoosePixelFormatARB” not available
when I try the createOffscreenDrawable() method. Coincidently, canCreateOffscreenDrawable() returns true;
Is there a better way to do what I am trying to do? I just want to draw and capture the contents of a GLCanvas without ever displaying it on the screen.
Many thanks,
D. Naphtha