mipmaps LOD bias
Hi all,
I need to access the different levels of a mipmap. I have implemented this previously on 'doze using
glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, x);
where x is the mipmap level. OS X doesn't complain about me using this, but it doesn't seem to be working. Anyone know if this does/doesn't work, if I'm doing something wrong, or if there's an alternative.
I'm using Cg fragment shaders to process the textures, so is there a way in Cg to access them?
Thanks,
Ben
I need to access the different levels of a mipmap. I have implemented this previously on 'doze using
glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, x);
where x is the mipmap level. OS X doesn't complain about me using this, but it doesn't seem to be working. Anyone know if this does/doesn't work, if I'm doing something wrong, or if there's an alternative.
I'm using Cg fragment shaders to process the textures, so is there a way in Cg to access them?
Thanks,
Ben
That works fine for me here. Just make sure x is in the range [-MAX_TEXTURE_LOD_BIAS, MAX_TEXTURE_LOD_BIAS] where MAX_TEXTURE_LOD_BIAS is a floating point number and is hardware-dependent. For example on Rage128/Radeon/Radeon7500, it is 1.0, not very useful. Other cards go from [-16.0 to 16.0].
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| MipMaps | OptimisticMonkey | 4 | 4,631 |
Feb 17, 2011 07:17 PM Last Post: Holmes |
|
| Pixel Buffers, Cocoa, and Mipmaps | bensta00 | 10 | 5,096 |
Jan 24, 2005 02:11 PM Last Post: arekkusu |
|


