LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cwei on January 08, 2005, 22:05:48

Title: Jake2 + lwjgl webstart
Post by: cwei on January 08, 2005, 22:05:48
The Quake2 port has now a lwjgl binding.
Thanks for the great  library. (fullscreen + mode switching on linux ... :-)

David Sanders contributed a LWJGL renderer for Jake2. You can try out the webstart versions here:

http://www.bytonic.de/html/jake2_webstart.html
direct link to the lwjgl version.
http://www.bytonic.de/downloads/jake2_lwjgl.jnlp

We hope it works for Mac users but we can't try it self.
It works with sound and fullscreen support on Win2k and Linux.
On WinXP the OpenAL sound hangs at the end of the q2demo1 (crash) and I don't no why.

Have fun
Carsten
Title: Jake2 + lwjgl webstart
Post by: Matzon on January 08, 2005, 22:29:21
just had a quick whirl - works great!
I like the embedded installation of demo package

did David Sanders say something about problems with doing the port or similar ?
Title: Jake2 + lwjgl webstart
Post by: cwei on January 08, 2005, 23:02:13
Quote from: "Matzon"I like the embedded installation of demo package
thanx
Quote from: "Matzon"did David Sanders say something about problems with doing the port or similar ?
No, he has modified the fastjogl package that uses DirectBuffers for a lot of OpenGL calls. I think it was not to difficult to port it.

Some differences:

Is it possible that your Keyboard code has a bug?
I did a workaround like this.

while (Keyboard.next())
{
   int key = Keyboard.getEventKey();
   char ch = Keyboard.getEventCharacter();
   boolean down =  Keyboard.getEventKeyState();

   // fill the character translation table
   // we need this because the getEventCharacter() returns \0 if a key is released
   // keycode is correct but the charachter value is not
   if (down) lwjglKeycodeMap[key] = ch;

   Do_Key_Event(XLateKey(key,ch), down);
}


bye
Carsten
Title: Jake2 + lwjgl webstart
Post by: Gavia on January 10, 2005, 17:19:19
I noticed the issue with Keyboard.getEventCharacter() not returning the proper character on a key release and was wondering if this was a bug or by desgin for some reason.

-Michael
Title: Jake2 + lwjgl webstart
Post by: princec on January 10, 2005, 18:40:25
I think it's a bug. At least, it seems to behave unintuitively.

Cas :)
Title: OpenAL crashs
Post by: cwei on January 13, 2005, 14:01:40
Hi lwjgl team,

the OpenAL lwjgl implementation of Jake2 crashs the JVM after a while.
The demo runs once or twice on Win2k and WinXP and freezes the JVM. I can't see any error or exception message. On linux it works fine without any problems the joal impl also. The joal and the lwjgl impl differ only in API specific kinds. We are using the version 0.94 of lwjgl.

Are you able to trigger the bug on your machines.
It could be a problem in the lwjgl.

BTW, the sound (wav) use only one DirectBuffer to initialize the OpenAL buffers.
Is this correct?
http://cvs.sourceforge.net/viewcvs.py/jake2/jake2/src/jake2/sound/lwjgl/
(Only LWJGLSoundImpl.java and Channel.java)

Thanks
Carsten