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

Started by
7 comments, last by utilae 18 years, 4 months ago
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???

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

Advertisement
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.
Quote:Original post by Sijmen
Power of two means 2^x

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

Quote:Original post by Sijmen
not x^2:


This is power of 2, 2 being the power.

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

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

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.
when you do something right, people won't be sure you've done anything at all.
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 ^^)
Quote:Original post by utilae
Quote:Original post by Sijmen
Power 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 Sijmen
not 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
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.

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

X TO the power 2 = x^2

The Xth power OF 2 = 2^x

It's the 'to' and 'of' that matters :)
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.

HTML5, iOS and Android Game Development using Corona SDK and moai SDK

This topic is closed to new replies.

Advertisement