Smallest power of 2 image size?
Monkey Forums/Monkey Programming/Smallest power of 2 image size?
| ||
Y'know how monkey pads images until they are power of 2? Is 2 the smallest it accepts? |
| ||
Technically 1 is a power of two. :) |
| ||
Technically 1 is a power of two. :) It is but there used to be problems in certain circumstances where some specific DirectX operations needed a minimum of two pixels otherwise they'd fail - I forget the details, it was somebody on indiegamer who had the issue. Don't know if GL has any similar problems but I always use minimum 2x2 to be safe. |
| ||
But 2x2 is not power of 2. It should be 4x4 if you want to keep safe. |
| ||
But if monkey automatically pads it will make a 2x2 into a 4x4? |
| ||
how is 2x2 not a power of two? |
| ||
How is 2x2 not a power of two? Becouse Sqrt(2) <> Int(Sqrt(2)) There's no natural number, greater than one, that can give 2 as its pow of 2. |
| ||
Huh? 2 to the power of 2 is 2x2 OO OO = 4 = 2x2 = 2^2 Don't drink and derive ;) |
| ||
@Skully Don't drink and derive ;) /facepalm |
| ||
@ziggy 2^0 = 1 2^1 = 2 2^2 = 4 2^3 = 8 2^4 = 16 2^5 = 32 2^6 = 64 etc etc |