Smallest power of 2 image size?

Monkey Forums/Monkey Programming/Smallest power of 2 image size?

slenkar(Posted 2011) [#1]
Y'know how monkey pads images until they are power of 2?

Is 2 the smallest it accepts?


Samah(Posted 2011) [#2]
Technically 1 is a power of two. :)


GfK(Posted 2011) [#3]
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.


ziggy(Posted 2011) [#4]
But 2x2 is not power of 2. It should be 4x4 if you want to keep safe.


matt(Posted 2011) [#5]
But if monkey automatically pads it will make a 2x2 into a 4x4?


Warpy(Posted 2011) [#6]
how is 2x2 not a power of two?


ziggy(Posted 2011) [#7]
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.


Skully(Posted 2011) [#8]
Huh?

2 to the power of 2 is 2x2

OO
OO = 4 = 2x2 = 2^2

Don't drink and derive ;)


Samah(Posted 2011) [#9]
@Skully Don't drink and derive ;)

/facepalm


matty(Posted 2011) [#10]
@ziggy

2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8
2^4 = 16
2^5 = 32
2^6 = 64

etc etc