View Full Version : reducing moire?
well the topic says all http://www.opengl.org/discussion_boards/ubb/smile.gif
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 http://www.opengl.org/discussion_boards/ubb/frown.gif
(or am i wrong?)
i hope someone can help me http://www.opengl.org/discussion_boards/ubb/smile.gif
JustHanging
04-14-2003, 05:05 AM
Yes, mipmapping is very useful for walls too. Just use it.
i have tryed the glubuild2dMipmaps() function but there is zero improvement http://www.opengl.org/discussion_boards/ubb/frown.gif
Mihail121
04-14-2003, 06:16 AM
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]);
}
Relic
04-14-2003, 06:37 AM
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.....
JustHanging
04-15-2003, 12:00 AM
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
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.