|
发表于 2011-11-1 11:01:00
|
显示全部楼层
Re: Re:我的结论:DX9不支持非2的次幂尺寸纹理,还得显卡
happyking: Re:我的结论:DX9不支持非2的次幂尺寸纹理,还得显卡说了算
不用2次幂的纹理,一样可以正常加载啊.
用2次幂的纹理,到底有什么好处?
好处之一是mipmap,看看这个http://en.wikipedia.org/wiki/Mipmap
imagine a 256x128 image. This would have smaller versions created of dimensions 128x64, 64x32, 32x16, 16x8, 8x4, 4x2, 2x1, and 1x1.
If this image was 256x192, it would work fine until you got down to a size of 4x3. The next smaller image would be 2x1.5 which is obviously not a valid size. Some graphics hardware can deal with this, but many types cannot.
Some hardware also requires a square image but this isn't very common anymore.
想象一张 256x128 的图片,它可以有128x64, 64x32, 32x16, 16x8, 8x4, 4x2, 2x1,和 1x1.的mipmap。
如果这张图是 256x192,同样创建mipmap,在 4x3 之前都是OK的,再小一层就变 2x1.5了,这个1.5能否处理,要看硬件…… |
|