At least for texture sheets that are used for icons and UI, it seems that the .dds for textures needs to be a factor of 2 (i.e. 1024x1024). Otherwise, GUTS will automatically resize it to the nearest power of 2 and your textures will look wanged up in-game.
At least for texture sheets that are used for icons and UI, it seems that the .dds for textures needs to be a multiple of 2 (i.e. 1024x1024). Otherwise, GUTS will automatically resize it to the nearest factor of 2 and your textures will look wanged up in-game.
It is interesting. A good note.
Actually, you'll need to have dimensions that are powers of two, not just multiples of two.*
There's a number of performance-related reasons why:
1. The various DXT compression algorithms (e.g. DXT5) use 4x4 blocks. (Which means you need multiples of 4, rather than of 2.)
2. Downscaling a power-of-two-sized texture by any power of two is super fast and needs no interpolation, and is therefore massively parallelizable. (Each output pixel is just the average of a block of input pixels.)
3. Ditto for mipmap generation (which is just repeated downscaling by various powers of two).
4. Upscaling by powers of two is also much easier since you can keep your input pixels and interpolate between them, rather than interpolating the entire output. (This benefit holds true for multiple-of-two dimensions (in addition to power-of-two dimensions).)
5. Doing math about the dimensions is super fast if you're multiplying or dividing by a power of two (since the operation can be reduced to right/left shifts that don't require the ALU).
*Many modern video cards relax this restriction. They'll accept DDS of any dimensions, even odd ones. You'll just take a huge performance hit for doing it. However, since Runic wanted compatibility with old PCs and low-end PCs, and good performance all around, it's not surprising that GUTS demands power-of-two dimensions.
Thanks Gyt! I usually just curse, flail about and, sometimes, cry until i get something that works

so knowing theres a science to this is reassuring!
But seriously, did my chragebar texture give u any trouble? I had to reference the .png instead of the .dds, to get it to show properly.
Yeah, a little PJ

It took me a bit to figure out what was going on, but now that we know it's no big deal.
And thanks Chthon! Yeah, I meant power, but wrote multiple. My mathematical vocab is a little loose all over.