View Full Version : Mipmapping a single level

The Wolf
02-25-2002, 11:32 AM
Quick question, is there a way you can mipmap a single level, for example instead of generating 5 mipmaps for a texture, that you would generate only one but at a certain level, ie. texture is 512x512, but you only generate on for 32x32, instead of generating all 256x256, 128x128....etc


02-25-2002, 12:38 PM
Is there a good reason why you'd want to do that?

02-25-2002, 03:41 PM
I guess the only reason would be memory efficiency ...

02-25-2002, 04:34 PM
I have seen another reason, cheap pseudo depth of field effects.

02-25-2002, 07:00 PM
maybe texture lod bias

02-25-2002, 11:51 PM
If you generate the mipmaps yourself, you could generate the 32x32 and then scale it up to 64x64 and 128x128 with a simple 1texel --> 2x2 --> 4x4 area?

02-26-2002, 12:23 AM
according to the opengl standard you either must generate no mipmaps or all down to 1x1.
everything else may cause 'undefined beahvior' (;