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
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
If i set the max param to anything other than GL_LINEAR, the state machine reports an error. I want to know why i get this behaviour.
[EDIT: I managed to do it. For anyone else who might face this, here is how you can change the current mip map level.
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, mipLevel);
I would still want to know why i cant set anything else for the magnification param?
Thanks,
Mobeen
[Edited by - mobeen on March 16, 2009 5:55:02 AM]