View Full Version : Texture: Power of 2 work around
04-24-2002, 07:07 AM
Is there any work around for the power of 2 texture dimensions restriction?
04-24-2002, 07:15 AM
Look into the extension NV_texture_rectangle.
04-24-2002, 08:11 AM
Pad a non 2^n texture with zeros, then ratio accordingly when you attach the texture to your poly. Works fine, but can waste a fair bit of mem as in 1025 would have to be padded to 2048 and so on....
04-24-2002, 08:24 AM
The easiest is gluBuild2DMipmaps which scales the image and creates mipmaps at the same time. Otherwise, use gluScaleImage but you need to figure out the widthout heightout values yourself. I personallly scale up:
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.