### Author Topic: How many 8x8 sprites are possible?  (Read 8152 times)

0 Members and 1 Guest are viewing this topic.

#### josh landers

• LV4 Regular (Next: 200)
• Posts: 116
• Rating: +1/-0
##### How many 8x8 sprites are possible?
« on: April 28, 2014, 12:55:41 pm »
As the title suggests, how many are possible, keep in mind I'm only talking black and white, not color!!!
There are 64 pixels in the sprite, two colors, and the name of the sprite is its hex code, so only 16 letters or numbers are needed.
How many sprites are possible?

#### Runer112

• Moderator
• LV11 Super Veteran (Next: 3000)
• Posts: 2289
• Rating: +639/-31
##### Re: How many 8x8 sprites are possible?
« Reply #1 on: April 28, 2014, 01:01:03 pm »
There are 28*8=18,446,744,073,709,551,616 unique monochrome 8*8 sprites.

#### JWinslow23

• Coder Of Tomorrow
• LV7 Elite (Next: 700)
• Posts: 556
• Rating: +43/-6
• I make quality calculator games...when I have time
##### Re: How many 8x8 sprites are possible?
« Reply #2 on: April 28, 2014, 01:10:54 pm »
There are 28*8=18,446,744,073,709,551,616 unique monochrome 8*8 sprites.
And there are 2 you can't use (I don't allow you to use them, as I have used them as well):

...JK, you can use them.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
= ?

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7920
• Rating: +374/-13
• Derpy Hooves
##### Re: How many 8x8 sprites are possible?
« Reply #3 on: April 28, 2014, 01:14:45 pm »
Now it gets more interesting if you say a sprite only like rotated 90° is the same one as the one before.
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!

#### Hayleia

• Programming Absol
• Coder Of Tomorrow
• LV12 Extreme Poster (Next: 5000)
• Posts: 3367
• Rating: +393/-7
##### Re: How many 8x8 sprites are possible?
« Reply #4 on: April 28, 2014, 01:24:36 pm »
Or maybe you just divide the previous number by 4
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7920
• Rating: +374/-13
• Derpy Hooves
##### Re: How many 8x8 sprites are possible?
« Reply #5 on: April 28, 2014, 02:41:47 pm »
but that won't do the whole trick, like there are ones like an X which are unique, and when tilted they are still the same sprite
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55926
• Rating: +3152/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: How many 8x8 sprites are possible?
« Reply #6 on: April 28, 2014, 05:44:46 pm »
The question is... how many of those sprites are useable?

#### Streetwalrus

• LV12 Extreme Poster (Next: 5000)
• Posts: 3821
• Rating: +80/-8
##### Re: How many 8x8 sprites are possible?
« Reply #7 on: April 28, 2014, 05:58:02 pm »
Very few compared to the ones that look like random junk.

#### josh landers

• LV4 Regular (Next: 200)
• Posts: 116
• Rating: +1/-0
##### Re: How many 8x8 sprites are possible?
« Reply #8 on: April 28, 2014, 06:33:28 pm »
Also could Omnimaga write a program that will make all of them, index them and have the hex code foreach? Obviously it would be huge, duh. But that would be cool to be the only site in the world with all 18,446,744,073,709,551,615 monochrome 8x8 sprites possible.

#### aeTIos

• Nonbinary computing specialist
• LV12 Extreme Poster (Next: 5000)
• Posts: 3913
• Rating: +184/-32
##### Re: How many 8x8 sprites are possible?
« Reply #9 on: April 28, 2014, 06:46:57 pm »
Also could Omnimaga write a program that will make all of them, index them and have the hex code foreach? Obviously it would be huge, duh. But that would be cool to be the only site in the world with all 18,7446,44,073,709,551,615 monochrome 8x8 sprites possible.
Are you CRAZY? I asked wolframalpha. You need 37.49 exabytes of data to store those images for 18 quintillion 744 quadrillion 644 trillion 73 billion 709 million 551 thousand 615 8-byte sprites. And that's the smallest part. You need 16 characters for every hex. In ASCII, every character is 1 byte. So that brings the total size per sprite to 24 bytes.
24 bytes * 18,7446,44,073,709,551,615 = 449.9 exabytes.

An exabyte, FYI, is 10 000 000 terabytes.
So unless you want to host the list, have the money, space, and power supply,
No.

EDIT: Because I feel like doing a What-If? XKCD style thing here, I'll put some more things here.

Assuming that Randall's approximation of Google's storage capacity (what-if #63) which he gauges at about 15 exabytes is correct, this means you'll need almost 30 and a half Googles to store all this information. If you wanted to put all the information on 1TB hard drive disks (measuring 2x18x10 cm, totally guesstimated that), you would need 449900000 drives. That would take up a volume of 161964m^3, or 43 olympic swimming pools (size: 50mx25mx3m)

I could go on, this is fun, but that's it.
« Last Edit: April 28, 2014, 07:29:47 pm by aeTIos »
I'm not a nerd but I pretend:

#### willrandship

• Omnimagus of the Multi-Base.
• LV11 Super Veteran (Next: 3000)
• Posts: 2953
• Rating: +98/-13
• Insert sugar to begin programming subroutine.
##### Re: How many 8x8 sprites are possible?
« Reply #10 on: April 28, 2014, 07:21:09 pm »
Actually it's 8 bytes per sprite, not two.

We wouldn't need to store them all. We could generate them on the fly extremely easily, since it's just a 64-bit number. Pass the 64 bit number and a small javascript program could generate it using a small canvas element.

#### merthsoft

• Posts: 241
• Rating: +63/-1
##### Re: How many 8x8 sprites are possible?
« Reply #11 on: April 28, 2014, 07:28:59 pm »
I made a tool to do this a while ago:
http://merthsoft.com/binsprite.html
And, of course, TokenIDE can do it, and countless other tools.
Shaun

#### aeTIos

• Nonbinary computing specialist
• LV12 Extreme Poster (Next: 5000)
• Posts: 3913
• Rating: +184/-32
##### Re: How many 8x8 sprites are possible?
« Reply #12 on: April 28, 2014, 07:34:14 pm »
Actually it's 8 bytes per sprite, not two.

We wouldn't need to store them all. We could generate them on the fly extremely easily, since it's just a 64-bit number. Pass the 64 bit number and a small javascript program could generate it using a small canvas element.
Yes, I know you don't have to store them all. But that's what OP is implying when he says "generates all of them". And I wanted to do some big number crushing
I'm not a nerd but I pretend:

#### josh landers

• LV4 Regular (Next: 200)
• Posts: 116
• Rating: +1/-0
##### Re: How many 8x8 sprites are possible?
« Reply #13 on: April 29, 2014, 04:16:06 pm »
Actually it's 8 bytes per sprite, not two.

We wouldn't need to store them all. We could generate them on the fly extremely easily, since it's just a 64-bit number. Pass the 64 bit number and a small javascript program could generate it using a small canvas element.
Yes, I know you don't have to store them all. But that's what OP is implying when he says "generates all of them". And I wanted to do some big number crushing

Are you sure? That seems awfully large... plus i said that
"will make all of them, index them and have the hex code for each?"
Not generate. Simply spits them out, perhaps on paper... oh wait, thats would probably be the whole redwood tree forest right?

#### Hayleia

• Programming Absol
• Coder Of Tomorrow
• LV12 Extreme Poster (Next: 5000)
• Posts: 3367
• Rating: +393/-7
##### Re: How many 8x8 sprites are possible?
« Reply #14 on: April 30, 2014, 01:48:42 am »
Well indexing them and having the hex code for each is the same thing, except if you want to be original and make your indexation not follow the hex code (which you can do but why do complicated ?). And generating them from their index is just converting their index (whether from decimal or hex) to binary.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.