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 3 of 3

Thread: anisotropic filtering

  1. #1
    Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    261

    anisotropic filtering

    Hi @ll!

    I know that I have to use an Extension, if I want to use anisitropic filtering in my OpenGL applications. I added the new tokens in a header file, but how can I activate and use the filtering?
    How do I have to set it up, so that it works for me? A short piece of sample code would be very nice!

    Diapolo

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    292

    Re: anisotropic filtering

    "The extension permits the OpenGL application to specify on a per-texture object basis the maximum degree of anisotropy to account for in texture filtering."

    Code :
    int degree_of_anisotropy = 1; // default : bi/tri-linear
     
    degree_of_anisotropy = 2; // - for anisotropic filtering.
     
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, degree_of_anisotropy );

  3. #3
    Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    261

    Re: anisotropic filtering

    Thank you!

    Diapolo

Posting Permissions

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