does anyone have ANY tutorial for jogl on using pBuffers? I cant find one anywhere and desperately need to work it out!
JOGL is just a wrapper around OpenGL, so any tutorial on OpenGL PBuffers should probably work. Have you looked for one of those?
One of the demos on the JOGL website uses PBuffers; you can probably use that to help you convert any C code you find to Java.
JOGL implements pBuffers very differently to C/C++ versions. pBuffers are Win32 only right now, and not in GLX (Don’t know about apple’s AGL extensions). There’s a lot of hand-holding done in JOGL for pBuffers and some extra restrictions due to the way they want to work with the AWT internals. Makes it a bit frustrating, especially with the lazy loading they use.
[quote]JOGL implements pBuffers very differently to C/C++ versions. pBuffers are Win32 only right now, and not in GLX (Don’t know about apple’s AGL extensions). There’s a lot of hand-holding done in JOGL for pBuffers and some extra restrictions due to the way they want to work with the AWT internals. Makes it a bit frustrating, especially with the lazy loading they use.
[/quote]
This is incorrect; JOGL’s pbuffer support is known to work on Win32 and X11 (Linux) and I believe it has been tested successfully on Mac OS X. I agree that there are some confusing aspects of pbuffer creation via JOGL due to the lazy instantiation of AWT widgets but we are thinking about ways of hiding this on all platforms to make interaction with pbuffers easier.
The ProceduralTexturePhysics and HWShadowmapsSimple demos in the jogl-demos workspace illustrate how to use pbuffers in JOGL.
Sorry. Looks like I misunderstood the context of a couple of conversations I had last week with people about the ARB getting GLX up to date. Pbuffers definitely came up within those but my fried brain is missing some of the details.
The Mac only had Pbuffers announced a few days ago.
Cas
[quote]The Mac only had Pbuffers announced a few days ago.
[/quote]
Any ideas as to how soon pbuffer support will be available on OS X then? Do we have to wait for an Apple update, a JOGL update, or both?
Pbuffers have been supported at the native level on OS X since 10.3 was released several months ago. JOGL’s pbuffer support should already be working on OS X.