AA is gone in 2.0rc2!?

Started by EgonOlsen, September 16, 2008, 19:15:46

Previous topic - Next topic

EgonOlsen

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

Matzon

please give 2.0rc1 a whirl - spasi changed some stuff around for OGL3.

EgonOlsen

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.

Matzon

strange - I'll poke spasi when I see him

EgonOlsen

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

spasi

I committed a possible fix, let me know if it still isn't working.

EgonOlsen

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?


EgonOlsen


spasi

Do you get the same error if you set samples to 0 or 1?

EgonOlsen

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)

elias

Note that the legacy wglChoosePixelFormat (not ARB) code path is probably selected when samples = 0.

- elias

Kai

I noticed the same issue (no multisampling) on NVidia Quadro FX 2500M, 177.98 (Vista 32bit)
RC1 worked fine.

spasi

Sorry for the delay, was busy at work.

It should be fixed now, try out this new dll and let me know if it's working.

Kai

Thanks a lot!
It works now as it did with RC1.