View Full Version : how do i configure FAA in opengl?
jcabeleira
07-22-2003, 12:24 AM
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?
kansler
07-22-2003, 12:34 AM
This example implements full screen antialiasing trough GL_ARB_multisample extension and wglChoosePixelFormatARB().
http://www.codeproject.com/useritems/starwars.asp
jcabeleira
07-22-2003, 02:18 AM
thanks, i'll take a look at it.
jcabeleira
07-22-2003, 02:31 AM
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?
kansler
07-22-2003, 05:29 AM
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.
jcabeleira
07-22-2003, 07:20 AM
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.
jcabeleira
07-22-2003, 07:51 AM
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).]
al_bob
07-22-2003, 10:20 AM
Edit: nevermind
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.