Game Development Community

Non Square Texture Problem

by KQswst104 · in Artist Corner · 03/30/2009 (2:59 pm) · 2 replies

I'm working on making a flag in constructor that is rectangular, but when I try to add a texture for it it says I'm not allowed to because its not a power of 2. Is there a way to use a non square shaped texture?

#1
03/30/2009 (3:33 pm)
hey Christina - textures which are powers of two on each side do not necessarily need to be square. a power of two just means numbers like 2, 4, 8, 16, 32, 64, 128, 256, 512, etc. so you could have a texture that was 512 x 256 with no problem. however, if your flag is say 3 x 2, you'll need to either make a 4 x 2 texture and stretch the image to fit, or make a 4 x 2 texture but only use three fourths of it.
#2
03/30/2009 (4:13 pm)
Thanks!