# How come some power of 2 sizes do not work as texture sizes??

This topic is 4860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

How come some power of 2 sizes do not work as texture sizes?? I have a texture of size 36x36. That is a power of 2 size, eg 6²=36 DirectX decides that it should be 64x64, which is also power of two, but how come it won't take my 36x36 as a power of two size???? How are you mean't to use small textures as seperate files if it keeps rounding up to 64x64? Some say loading small textures rather than combined textures has some advantages, though that is not my focus here. Any answers???

##### Share on other sites
Hi,

Power of two means 2^x, not x^2:

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

##### Share on other sites
Quote:
 Original post by SijmenPower of two means 2^x

That's the power of x, x being the power.

Quote:
 Original post by Sijmennot x^2:

This is power of 2, 2 being the power.

Isn't that how it's mean't to work in maths.

##### Share on other sites
No, Sijmen is correct.

In x^2, 2 is the power of x.
In 2^x, x is the power of 2.

You've just flipped the terminology backwards.

##### Share on other sites
Nope, power of 2 means 2^X.
The powers of X are all the values like X^Y (at least in french, it works this way, and I assume that if everyone say "power of 2" to designate sizes of 2^X, it works like that in english too ^^)

##### Share on other sites
Quote:
Original post by utilae
Quote:
 Original post by SijmenPower of two means 2^x

That's the power of x, x being the power.

Nope, the exponent is the power of the number in front of it.

Quote:
Original post by utilae
Quote:
 Original post by Sijmennot x^2:

This is power of 2, 2 being the power.

Isn't that how it's mean't to work in maths.

So here, 2 is the power of x.

Also check this out: Powers of two

/edit: waay too late

##### Share on other sites
Quote:
 The simplest case involves a positive integer exponent: For example, 35 = 3 × 3 × 3 × 3 × 3 = 243. Here, 3 is the base, 5 is the exponent (written as a superscript), and 243 is 3 raised to the 5th power or 3 raised to the power 5. (The word "raised" is usually omitted, and most often "power" as well, so 35 is typically pronounced "three to the fifth" or "three to the five".) Notice that the base 3 appears 5 times in the repeated multiplication, because the exponent is 5.

See my source of confusion (in bold). Then down the article they ignore the bold bit, which almost sounds like a rule in this paragraph.

##### Share on other sites
X TO the power 2 = x^2

The Xth power OF 2 = 2^x

It's the 'to' and 'of' that matters :)

##### Share on other sites
Ok, so that sorts it, thanks.

Graphics cards do say power "OF" two and not power "TO" two.

So yeah, now it makes sense. Sigh, oh well, have to make my textures that are 36x36 into 64x64, at least higher resolution is better.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• 24
• 15
• 36
• 12
• ### Forum Statistics

• Total Topics
634823
• Total Posts
3019459
×