From: Daniel V. <vo...@lo...> - 2000-12-14 19:27:22
|
On Thu, Dec 14, 2000 at 10:16:58AM -0700, Brian Paul wrote: > > Are you settting GL_TEXTURE_BASE_LEVEL? No, I only set GL_TEXTURE_MAX_LEVEL and cut off the last two mip levels. It also looks like the filters use the wrong base mipmap. Everything looks overblurry from an angle and a naive guess would be that it's taking everything 2 levels too far down. > I think I see an error in the calculation in _P. I think I should > add the base level to it. However, that would increase _P. from mtypes.h: GLint _P; /* Highest mipmap level */ GLfloat _M; /* = MIN(MaxLevel, P) - BaseLevel */ What do _P and _M actually mean? Is _P the highest mip level based on the size of the image (e.g. 5 for 32x32) and _M supposed to be the one after "clipping"? Daniel Vogel, Programmer, Loki Software Inc. |