LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: renanse on August 27, 2004, 18:07:49

Title: offscreen context
Post by: renanse on August 27, 2004, 18:07:49
Hey Folks,

Is there anyway I could convince the lwjgl team to add the ability to allow for creating a windowless offscreen context for rendering opengl content?  Basically, I'm building a tool to support a game and I want to be able to generate preview images to display in the tool without having an opengl window open.  Obviously, it would be preferrable to be able to use the same rendering code I currently use in the game to create these preview images.

Also along these lines, supporting such a configuration would allow an easy implementation of a LWJGL Swing panel.  I've already written something like that but you have to keep open an LWJGL window in the background for it to work.  GL4Java used this offscreen technique to do their Swing panel, so it's not really a new idea, just something we can't do yet with lwjgl.

Please consider it anyway...
Title: offscreen context
Post by: elias on August 27, 2004, 21:43:28
Doesn't Pbuffer do just that?

- elias
Title: offscreen context
Post by: renanse on August 27, 2004, 22:27:32
I'm sorry if I wasn't clear.  I don't want to create a visible Window.  I'm under the impression given the sources I have (which are admittedly .9 LWJGL) that Pbuffer requires a Window to have been created.
QuoteNOTE: An OpenGL window must be created before a Pbuffer can be created.
Title: offscreen context
Post by: elias on August 27, 2004, 22:55:19
Hmm yes. That has changed in CVS so that you can create a Pbuffer without a Display.

- elias
Title: offscreen context
Post by: renanse on August 28, 2004, 00:29:40
Awesome, thanks.  I read on the JGO forum that a newer release of lwjgl would be out this week.  Is that still the case?
Title: offscreen context
Post by: Matzon on August 28, 2004, 10:35:06
yeah - We should be able to do a release tonight, or tomorrow
Title: offscreen context
Post by: Matzon on August 30, 2004, 07:50:13
meh - no builds until tomorrow - my linux box didn't want to compile yesterday, and I don't have time to do one tonight.
Title: offscreen context
Post by: renanse on September 03, 2004, 16:54:02
Sorry to bug on this, but I'd really like to get that newer build :)  Also, getting the newer lwjgl released would allow us to port jME over to supporting it.  Thanks!
Title: offscreen context
Post by: cfmdobbie on September 05, 2004, 18:41:39
*bump*
Title: offscreen context
Post by: Matzon on September 05, 2004, 20:38:56
!
I am ready to post - but waiting for elias to send me an FMOD build for linux - then I'll start the process of posting it on SF (takes *waaay* to long time :/)
Title: offscreen context
Post by: renanse on September 06, 2004, 16:07:33
Great, looking forward to it.  :D