View Full Version : downsampling floating-point NPOT textures
04-14-2005, 01:42 PM
Does anyone have any recommendations for downsampling NPOT textures? Mipmapping isn't supported for these, which would be the easy way to do it. Yes, I'm interested in using this for tone mapping and other effects associated with scenes prerendered to floating-point NPOT textures.
04-14-2005, 02:00 PM
I think mipmapping is indeed supported for NPOT textures, also for float16 textures. AFAIK the nvidia 6 cards do support this. Mipmapping for NPOT should be described in one of the extension specs, so you could read there how it should be done, there should even be some formulas there how mipmaps are handled and generated the right way.
Yes, mipmaps ARE supported for NPOT textures. NPOT-textures can do everything POT-texture can do, thatīs the nice thing about this spec.
What you mean are rectangle-textures. Those donīt support mipmapping (and several other things).
04-15-2005, 01:39 AM
The fastest way to downsample a rectangle texture is using a fragment program. Just create a smaller texture as an output and draw a box-filtered fullscreen rectangle with the large texture on it.
04-15-2005, 07:10 AM
Yes, you're right, I meant rectangular textures.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.