From: Bruce S. <bas...@nc...> - 2010-06-29 20:47:20
|
You just have to do what it says: Each dimension of the texture must be a power of 2. The image will then be stretched and/or compressed to fill the rectangle you put it on. Bruce Sherwood On Tue, Jun 29, 2010 at 2:27 PM, Khaerul Adzany <kha...@gm...>wrote: > Kadir, thank you for the hint! I think I didn't read the page thoroughly > (shy) > > Now I have another (related) problem, as you can see in my code there is: > > width = 1840 > height = 321 > #an then resize > im = Image.open('w-gauss_of_v1.1_0.50_04.png') > im = im.resize((width,height), Image.ANTIALIAS) > > there are the size of the bitmap i'm using and I created a bitmap from > a file an then re-size it, so after using a 'rectangular' as mapping > mode in my materials.texture() my image isn't showing as I expected. > So the real question is: how do you handle that kind of texture (not a > power-of-2 sized texture)? (because I've red it at the example in the > link that a texture has to have a power-of-2 size) > > -- > again, please, enlighten me > > > |