<div dir="ltr"><br><div>Hi, I'm having a little trouble getting texture mipmap minification filtering to work with Mesa, I'm wondering if one of you gurus might be able to spot what I'm doing wrong. I've setup a test program that runs the same code once via Mesa and once via glut, and with glut I see proper mipmap sampling, but with Mesa I don't - only the base level texture is sampled, no matter what GL_TEXTURE_MIN_FILTER settings I use. Maybe I've done something stupid or in the wrong order?</div>
<div><br></div><div>I'm constructing my mip levels manually with different colors, so I can see them. My base texture is blue, and when I render several quads at different sizes using Mesa, the entire image is blue indicating base texture.</div>
<div><br></div><div>I'm on Mac (OSX 10.9.4) + PyOpengl 3.0.2 + Mesa 8.0.5 (via macports)</div><div><br></div><div>Glut results: <a href="https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mip_test_glut.png">https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mip_test_glut.png</a></div>
<div>Mesa results: <a href="https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mip_test_mesa.png">https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mip_test_mesa.png</a></div><div>Code: <a href="https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mesa_mip_test.py">https://dl.dropboxusercontent.com/u/364079/mesa-mipmap/mesa_mip_test.py</a></div>
<div>(Images were generated by running "mesa_mip_test.py 0 && mesa_mip_test.py 1")</div><div><br></div><div><div>I've tried a lot of searching, attempted (so far, unsuccessfully) to build a newer Mesa version locally, re-read OpenGl's "Common mistakes", etc. I also ran the same code in a linux/Xvfb environment, and there both versions have the same results -- both the Glut and Mesa versions come out all blue; minification filtering seems to not work.<br>
</div></div><div><br></div><div>---------</div><div>FWIW, here's my environment. I'm on a very old version of Mesa, but for now I am assuming my problem is with my code, not Mesa, and unlikely to be version dependent.</div>
<div><br></div><div><div>> uname -a</div><div>Darwin porkchop.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 i386 MacBookPro8,2 Darwin</div></div><div>
<br></div><div><div>> port list installed | grep mesa</div><div>mesa                           @8.0.5          x11/mesa<br></div><div><br></div></div><div><div>> pip list | grep -i gl</div><div>PyOpenGL (3.0.2)</div>
<div>PyOpenGL-accelerate (3.0.2)</div></div><div><br></div><div>--</div><div>David.</div><div><br></div></div>