Why is everything to the power of 2?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Why is everything to the power of 2?

Post by Dakota »

i was just wondering why all of the textures are always to the power of 2. what would make the game designers do something like that anyway? its just weird that it would be to 2, why not 1 or something. is there a real reason behind them making everything to the power of 2?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: why is everything to the power of 2?

Post by kinetosimpetus »

User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: why is everything to the power of 2?

Post by Dakota »

oh yeah, i forgot about bits. i actually didn't think that they would matter for something like this but i guess i don't really know all of what bits are for.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: why is everything to the power of 2?

Post by AQT »

Dakota wrote:why not 1 or something.
Dakota wrote:...textures...
What's the practicality of a 1x1 texture dimensions for everything?
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: why is everything to the power of 2?

Post by THEWULFMAN »

AQT wrote:
Dakota wrote:why not 1 or something.
Dakota wrote:...textures...
What's the practicality of a 1x1 texture dimensions for everything?

But AQT, I made this awesome 1x1 texture! Here it is at 360x magnification.

No one has permission to use this in a mod! I worked hard on it. :x
Image
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Why is everything to the power of 2?

Post by Eggman »

1x1 would actually still be a power of 2 (as in 1^2). Trying to make a texture to the power of 1 would be impossible, as it would only be one-dimensional. It's dimensions would be something like 256. Or 64. See the problem? One-dimensional figures can't really exist in any concrete form.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Why is everything to the power of 2?

Post by Dakota »

the reason i said to the power of 1 is because i wasn't really thinking well. i was just thinking about if it was to the power of one then you could make things any size. but then anyway i did post this at almost 1:00 O'clock so my math wasn't really the best at that time...
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: why is everything to the power of 2?

Post by CressAlbane »

THEWULFMAN wrote: But AQT, I made this awesome 1x1 texture! Here it is at 360x magnification.

No one has permission to use this in a mod! I worked hard on it. :x
Image
:funny2: This is great.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Why is everything to the power of 2?

Post by AQT »

Eggman wrote:1x1 would actually still be a power of 2 (as in 1^2).
That would be a power of 1. 2^0, which is equal to 1, is a power of two.
Trying to make a texture to the power of 1 would be impossible, as it would only be one-dimensional.
This isn't about physical dimension but rather the size of a length. Power of 1 values (1^1, 1^2, 1^3, 1^4, and so forth) will always be equal to 1. Hence if all textures were to follow the power of 1 rule, like Dakota was thinking incorrectly, the only dimensions that could be used is 1x1. Now if this was about physical dimension, 512 (2^9), a power of two value, isn't even a perfect square.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Why is everything to the power of 2?

Post by Eggman »

AQT wrote:
Eggman wrote:1x1 would actually still be a power of 2 (as in 1^2).
That would be a power of 1. 2^0, which is equal to 1, is a power of two.
Trying to make a texture to the power of 1 would be impossible, as it would only be one-dimensional.
This isn't about physical dimension but rather the size of a length. Power of 1 values (1^1, 1^2, 1^3, 1^4, and so forth) will always be equal to 1. Hence if all textures were to follow the power of 1 rule, like Dakota was thinking incorrectly, the only dimensions that could be used is 1x1. Now if this was about physical dimension, 512 (2^9), a power of two value, isn't even a perfect square.
Bah, silly me, you're right. Shows how long it's been since I've done any real math since I'm getting my terms mixed up.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Why is everything to the power of 2?

Post by THEWULFMAN »

*Reads everything AQT said*

:shock:
Eggman wrote:Shows how long it's been since I've done any real math since I'm getting my terms mixed up.

I concur. :plokoon:
Post Reply