Jake2 + lwjgl webstart

Started by cwei, January 08, 2005, 22:05:48

Previous topic - Next topic

cwei

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

Matzon

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 ?

cwei

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:
    jogl rewinds buffers after calling a gl-function (vertex arrays)
    jogl has a very unhandy threading system and lwjgl not :-)

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

Gavia

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

princec

I think it's a bug. At least, it seems to behave unintuitively.

Cas :)

cwei

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