Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 10

Thread: how do i configure FAA in opengl?

  1. #1
    Intern Contributor
    Join Date
    Jul 2003
    Location
    Faro, Portugal
    Posts
    88

    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?

  2. #2
    Intern Contributor
    Join Date
    Apr 2002
    Posts
    87

    Re: how do i configure FAA in opengl?

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

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

  3. #3
    Intern Contributor
    Join Date
    Jul 2003
    Location
    Faro, Portugal
    Posts
    88

    Re: how do i configure FAA in opengl?

    thanks, i'll take a look at it.

  4. #4
    Intern Contributor
    Join Date
    Jul 2003
    Location
    Faro, Portugal
    Posts
    88

    Re: how do i configure FAA in opengl?

    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?

  5. #5
    Intern Contributor
    Join Date
    Apr 2002
    Posts
    87

    Re: how do i configure FAA in opengl?

    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-samp...xel_format.txt

    http://oss.sgi.com/projects/ogl-samp...ultisample.txt

  6. #6
    Intern Contributor
    Join Date
    Jul 2002
    Posts
    68

    Re: how do i configure FAA in opengl?

    >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.

  7. #7
    Intern Contributor
    Join Date
    Jul 2003
    Location
    Faro, Portugal
    Posts
    88

    Re: how do i configure FAA in opengl?

    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

  8. #8
    Member Regular Contributor
    Join Date
    May 2001
    Posts
    349

    Re: how do i configure FAA in opengl?

    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.

  9. #9
    Intern Contributor
    Join Date
    Jul 2003
    Location
    Faro, Portugal
    Posts
    88

    Re: how do i configure FAA in opengl?

    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).]

  10. #10
    Junior Member Regular Contributor
    Join Date
    Jun 2003
    Posts
    181

    Re: how do i configure FAA in opengl?

    Edit: nevermind

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •