Jump to content
  • Advertisement
Sign in to follow this  
utilae

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.

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites
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

Share this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!