PDA

View Full Version : Oblong textures



mage111
05-03-2004, 11:37 PM
Hello,is it possible to use oblong textures in OpenGL??Must I use only 64x64,128x128,...

Thanks for answers.Mage

05-04-2004, 12:29 AM
Yep, no problem, but dimensions must still be powers of two. For example, you can have:

64x256
256x512
8x256
1024x2048

mage111
05-04-2004, 01:55 AM
Thank you!!!

-NiCo-
05-04-2004, 02:07 AM
By using extensions like NV_texture rectangle or ARB_texture_non_power_of_two, you can also specify textures with non power of 2 dimensions.
Be careful when using these extensions though, because they might differ in the way texture lookup is performed (NV_texture rectangle uses the range [0..w]x[0..h] instead of the standard [0..1]x[0..1] range ) based on the incoming texture coordinates, mipmapping is not supported until the next generation of GPUs and not all clamping parameters are permitted.