When i check if my computer supports pbuffer i get true, but when trying to create a GLPbuffer it says that it can’t find a suitable pixel format, and no matter how low i set the GLCapabilities, i get the same error. Any ideas?
Does the demos.jgears.JGears demo work?
What OS, Java version, graphics card type, and driver version are you using?
There was a bug in the X11 pbuffer support in JSR-231 beta 2 which was just fixed. If you are using beta 2 on for example Linux, could you please try the current nightly build?
I have intel extreme graphics 2 and are using win xp home edition. also using the jogl version from the jogl.dev.java.net frontpage, and the JOGL Gears demo works like a dream, and i use the latest java version.
There should be a “default” minimal pixelformat like lwjgl’s:
pbuffer = new Pbuffer(512, 512, new PixelFormat(), null, null);
Dunno if this is any help but, I had problem with pbuffers, and the only capability i could get mine to work with my card were:
GLCapabilities cap = new GLCapabilities();
cap.setDoubleBuffered(false);
Doubt this is a problem but I also set the size of the pbuffer greater than the maximum the card allows it throws a glexception of:
pbuffer creation error: wglCreatePbufferARB() failed: tried 1 pixel formats, last error was: (Unknown error code 3519775730072748063)
Thx for the solution Xicon, it solved the problem
Thanks for suggesting that. Yes, you should probably always setDoubleBuffered(false) on your GLCapabilities when creating a pbuffer. I’d be concerned about forcing this to single-buffered behind the scenes.