LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: EgonOlsen on September 16, 2008, 19:15:46

Title: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 16, 2008, 19:15:46
Hi,

i've just ported jPCT to 2.0rc2. Everything works fine except for anti aliasing...it's gone. I'm doing this:


Display.create(new PixelFormat(bpp, 0, zbpp, 0, samples));


No matter which value i'm using for samples, it always gives me a


org.lwjgl.LWJGLException: Failed to find ARB pixel format 1 0

at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:177)
at org.lwjgl.opengl.Display.createWindow(Display.java:300)
at org.lwjgl.opengl.Display.create(Display.java:816)
at org.lwjgl.opengl.Display.create(Display.java:744)


I don't know about 2.0rc1, but in 1.1.4, the exact same code was working fine and gave me some nice AA. Any ideas?

This is on a Radeon 4870, Catalyst 8.8, Windows Vista
Title: Re: AA is gone in 2.0rc2!?
Post by: Matzon on September 16, 2008, 19:27:39
please give 2.0rc1 a whirl - spasi changed some stuff around for OGL3.
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 16, 2008, 19:32:07
Quote from: Matzon on September 16, 2008, 19:27:39
please give 2.0rc1 a whirl - spasi changed some stuff around for OGL3.
In 2.0rc1, everything works fine. AA is present as it should be.
Title: Re: AA is gone in 2.0rc2!?
Post by: Matzon on September 17, 2008, 05:16:34
strange - I'll poke spasi when I see him
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 17, 2008, 08:56:11
On my work machine (Nvidia Quadro 290...unknown driver...), AA works fine. So i can now choose between home (no AA, but sound) and work (AA, but no sound) with rc2... :P
Title: Re: AA is gone in 2.0rc2!?
Post by: spasi on September 17, 2008, 11:29:51
I committed a possible fix, let me know if it still isn't working.
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 17, 2008, 13:20:47
Quote from: spasi on September 17, 2008, 11:29:51
I committed a possible fix, let me know if it still isn't working.
I have nothing installed to compile this native stuff myself. Is the modified dll already part of the rc2-distribution? If not, could you please provide me with a compiled version?
Title: Re: AA is gone in 2.0rc2!?
Post by: Matzon on September 17, 2008, 16:02:37
try this one:
http://matzon.dk/brian/lwjgl/lwjgl-new-for-olsen-banden.dll
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 17, 2008, 17:29:03
Quote from: Matzon on September 17, 2008, 16:02:37
try this one:
http://matzon.dk/brian/lwjgl/lwjgl-new-for-olsen-banden.dll
Thank you, but it doesn't help...  :'( Still no AA on ATI with this dll.
Title: Re: AA is gone in 2.0rc2!?
Post by: spasi on September 18, 2008, 10:53:51
Do you get the same error if you set samples to 0 or 1?
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 18, 2008, 16:52:13
Quote from: spasi on September 18, 2008, 10:53:51
Do you get the same error if you set samples to 0 or 1?
0 works fine...it always did. Everything else doesn't work. However, the exception has changed with the new dll to:

Failed to find ARB pixel format 0 0

(the 1 is a 0 now...everything else remains the same)
Title: Re: AA is gone in 2.0rc2!?
Post by: elias on September 18, 2008, 17:04:54
Note that the legacy wglChoosePixelFormat (not ARB) code path is probably selected when samples = 0.

- elias
Title: Re: AA is gone in 2.0rc2!?
Post by: Kai on September 20, 2008, 13:05:42
I noticed the same issue (no multisampling) on NVidia Quadro FX 2500M, 177.98 (Vista 32bit)
RC1 worked fine.
Title: Re: AA is gone in 2.0rc2!?
Post by: spasi on September 23, 2008, 12:04:01
Sorry for the delay, was busy at work.

It should be fixed now, try out this (http://www.zdimensions.gr/spasi/public/lwjgl.dll) new dll and let me know if it's working.
Title: Re: AA is gone in 2.0rc2!?
Post by: Kai on September 23, 2008, 15:54:24
Thanks a lot!
It works now as it did with RC1.
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 23, 2008, 17:28:19
Works fine for me too. Thank you for the fix.
Title: Re: AA is gone in 2.0rc2!?
Post by: princec on September 24, 2008, 20:51:04
An RC3 pending in the works then...?

Cas :)
Title: Re: AA is gone in 2.0rc2!?
Post by: Matzon on September 24, 2008, 21:21:17
yes, just waiting for a bit to pick up any issues
Title: Re: AA is gone in 2.0rc2!?
Post by: EgonOlsen on September 24, 2008, 21:28:21
Quote from: Matzon on September 24, 2008, 21:21:17
yes, just waiting for a bit to pick up any issues
I'm not sure, but maybe this is another issue: http://www.javagaming.org/index.php/topic,19230.msg151695.html#msg151695 (http://www.javagaming.org/index.php/topic,19230.msg151695.html#msg151695)

All i'm doing is to display the modes that LWJGL returns to me. Sadly, i haven't got any feedback about how 1.1.4 behaves on this machine.