=rk=
Resource contributor
- Messages
- 4,702
- Country

I don't know how relevant this is for people, if you use pre sized textures from a repository or library you may never run into a similar situation. I tend to like to make my own textures, from screen grabs and they're rarely power of 4. For the longest time I used MCX and getting power of 4 textures was simply procedural. Now that I use 3ds Max primarily, MCX isn't part of the pipeline and I get texture warnings a lot. At first, I was just doubling, or quadrupling the textures size which worked, but it's not very practical - then math woke me up.
See, once you map a texture, the dimensions are irrelevant. If you scale the texture uniformly, the mapping remains unchanged and detail precision rises or falls. Given that, I can usually get to power of 4 by adding or subtracting a few pixels to or from one dimension, which Photoshop obligingly matches. So far in my early experiments, I am able to get power of 4 within a range of about 20 pixels and I can "picture" that there would be an equation that could tell us exactly the range of numbers necessary to add or subtract from any fixed ratio, such that each dimension was divisible by four. We already know the "adjustment" range would be fewer than 100 pixels, because any multiple of 100 is divisible by four, so ya. I am guessing the number would be just under 50, but half of that also seems likely.
See, once you map a texture, the dimensions are irrelevant. If you scale the texture uniformly, the mapping remains unchanged and detail precision rises or falls. Given that, I can usually get to power of 4 by adding or subtracting a few pixels to or from one dimension, which Photoshop obligingly matches. So far in my early experiments, I am able to get power of 4 within a range of about 20 pixels and I can "picture" that there would be an equation that could tell us exactly the range of numbers necessary to add or subtract from any fixed ratio, such that each dimension was divisible by four. We already know the "adjustment" range would be fewer than 100 pixels, because any multiple of 100 is divisible by four, so ya. I am guessing the number would be just under 50, but half of that also seems likely.
