how do i configure FAA in opengl?

i’ve read de NVIDIA doc’s about multisample and FAA, but i can’t implement it.
Can someone post some code so that i see how it’s done?

This example implements full screen antialiasing trough GL_ARB_multisample extension and wglChoosePixelFormatARB().

http://www.codeproject.com/useritems/starwars.asp

thanks, i’ll take a look at it.

so the trick is to create a dummy window to receive a pixel format compatible with multisample, then that pixel format will is aplied in another window, isn’t it?

No, you can use this function without a dummy window. It’s just a better version of the standard wgl pixel format functions.

http://oss.sgi.com/projects/ogl-sample/registry/ARB/wgl_pixel_format.txt

http://oss.sgi.com/projects/ogl-sample/registry/ARB/multisample.txt

>No, you can use this function without a dummy window.

How do you do it without a dummy window? Without a dummy window that uses a pixelformat that is hardware-accelerated by the device for which you want FSAA, how are you able to get pointer to the WGL_ARB functions?
F.i. in a dual display case, say, with one board an nVidia one on AGP, and an ATI one on PCI: you have 2 OpenGL ICDs, with different feature sets, one may support FSAA, the other not.

i agree with EG, to put FAA working in opengl it’s necessary to get a pixel format compatible with multisample using, for example, wglChoosePixelFormatARB wich is an extension, and extensions must be initialized within a rendering context.

so, i would do this way:
-create a dummy window and put opengl multisample extensions working on it
-get a pixel format with multisample using wglChoosePixelFormat and store it somewhere
-destroy the dummy window
-finally, create the new window with the pixel format that i got from the dummy window

i haven’t tried this aproach yet, but i think it will work just fine

Originally posted by jcabeleira:
so, i would do this way:
-create a dummy window and put opengl multisample extensions working on it
-get a pixel format with multisample using wglChoosePixelFormat and store it somewhere
-destroy the dummy window
-finally, create the new window with the pixel format that i got from the dummy window

You need a dummy RC, but you can do that all with one window.

Originally posted by Xmas:
You need a dummy RC, but you can do that all with one window.

yes, i know. thanks anyway.

[This message has been edited by jcabeleira (edited 07-22-2003).]

Edit: nevermind