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

0 Members and 1 Guest are viewing this topic.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
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?

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
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.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
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):
<-- I had to ask leafy for this one



...JK, you can use them. :P
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
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 GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
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 :P
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.

click here to know where you got your last +1s

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
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 GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
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? :P

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
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. :P

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
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.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
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. :P
« Last Edit: April 28, 2014, 07:29:47 pm by aeTIos »
I'm not a nerd but I pretend:

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
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.

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
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

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
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 :P
I'm not a nerd but I pretend:

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
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 :P

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? ::)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
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.

click here to know where you got your last +1s