Hi all,
I have enabled mipmapping on 3D textures for a simple texture slicer. I have the mipmapping working alright. What i want to do is view all the mipmap levels. I have a small quad rendered on screen that shows the current slice from the 3d texture. I use keyboard to move across the 3d stack. This is working fine. What i want to do now is to cycle through the mipmap levels? how can i do that? I have used gDebugger and it shows all of my mipmap levels along with the data contained in them. I want to do the same but how can i do that?
I have one more question about mipmapping currently i have set the min and max filter params to be
for magnification filter(mag filter) u have only GL_LINEAR and GL_NEAREST
for minification filter(min filter) u have :
GL_NEAREST ( point sampling)
GL_LINEAR ( bilinear sampling)
GL_NEAREST_MIPMAP_LINEAR
…
GL_LINEAR_MIPMAP_LINEAR ( trilinear sampling ) bcoz it is linear average between two binilear sampled mipmaps. this is the best filtering .
u have to know that when using mimaps its Opengl that decides wich texture map to use based on the pixel size of the object being mapped. to see the different mipmapping try change the position of ur object from the eye and u will c that OpenGL will pick for u the corresponding level .