Results 1 to 2 of 2

Thread: Texture filtering - MipMapping without gluBuild2DMipmaps

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    1

    Texture filtering - MipMapping without gluBuild2DMipmaps

    Im my OpenGL application I am attempting to create Mipmaps using glTexImage2D. I am not using gluBuild2DMipmaps for two reasons:
    -I do not want to use glu in my program
    -I prefer to learn how to do something without an external library as my crutch

    Therefore in an attempt to reduce image degredation during the resizing proccess, for every level of reduction I am following this procedure:
    Target texel = Average(Source Texel + Surrounding Texels)
    Thus a texels properties are defined by an average between the visible source texel and the culled surrounding (3 to texels.

    However, despite this effort there are still visible artifacts in the mipmaps.

    What image filtering procedures exist that will eliminate artifacts and produce a smooth reduction, and where can documentation of the methods/algorithms be found? Or, is there any other useful advice to be offered by the OpenGL veterans of the opengl.org forums?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Texture filtering - MipMapping without gluBuild2DMipmaps

    However, despite this effort there are still visible artifacts in the mipmaps.
    When downsampling an image, you have to remove the higher frequencies in the image. It's the higher frequencies that creates the artifacts after a downsampling. To remove them, you have to apply a proper low pass filter on the image. The usual way is to create a 2x2 or 3x3 filter (3x3 would be center pixel and it's neighbours), but that is far from an ideal low pass. A good low pass filter may require a very large filter. So basically your filter is to small to reduce the higher frequencies.

    Now, creating a larger filter is not that easy. All filter coefficients have to be carefully calculated, and that is not very easy unless you have a good understanding in filter design and (multidimensional) signal processing.

    [This message has been edited by Bob (edited 11-18-2002).]

Similar Threads

  1. Texture Mipmapping
    By dr4cula in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-22-2013, 10:55 AM
  2. Mipmapping with integer texture
    By Media in forum OpenGL: GLSL
    Replies: 0
    Last Post: 08-31-2010, 12:58 PM
  3. Regarding mipmapping with 3d texture
    By mobeen in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-16-2009, 09:49 AM
  4. SGIS MipMapping and Anisotrpoic Filtering...
    By rhancock in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 10-27-2003, 12:24 PM
  5. Texture compression, mipmapping and ATI
    By abrodersen in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 12-05-2002, 01:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean