reducing moire?

well the topic says all

anyone here who know a good way of reducing moire?

and i speak of textures on walls not floor so mipmapping will not be very helpfull
(or am i wrong?)

i hope someone can help me

Yes, mipmapping is very useful for walls too. Just use it.

i have tryed the glubuild2dMipmaps() function but there is zero improvement

there cannot be 0 improvment with gluBuild2DMipmaps as i know.Well if something is wrong try to set some mipmaps manually by passing incrementing level values to glTexImage2D.Like this:

int w = initial_width;
int h = initial_height;

for(int i = 0;i < 4;i++)
{
glTexImage2D(GL_TEXTURE_2D,i,GL_RGB,w / 2,h / 2,0,GL_RGB,GL_UNSIGNED_BYTE,data[i]);
}

If BuildMipmaps had no effect, you either had mipmapping not enabled in the glTexParameter calls of your texture (object) or you were too near to the wall to see texture minification.

i presume the second…

I don’t think it’s the second. If you don’t see minification, you’re definetly not going to get moire. In addition to using gluBuild2dmipmaps, make sure you set your minification filter to GL_LINEAR_MIPMAP_LINEAR or GL_LINEAR_MIPMAP_NEAREST. If that doesn’t cut it, I’d bet it’s just your textures that suck. Sorry…

-Ilkka