Author Topic: 32bit color paints?  (Read 1846 times)

Note: This is about the spraycan, and brick colors, and more directed towards Badspot. This would be impossible as an add-on.

We are currently living with 6-bit (64 possible colors) due to datablock limitations.
Wouldn't 32-bit colors allow for better looking builds?
It's not like we need all those datablocks for different colors.
Look at the way particles work on bricks. They can change to the color of the brick. Wouldn't an emitter be able to do the same from a player's spraycan color?
But what about all those different color spray cans? Screw them. We don't need them. I'm not making love to the spray can as I spray my builds. It's fine in one color. Perhaps a rainbow or some gray?
It would only be adding 6 chars to a brick's colorID value. (FFFFFF90 [trans white] as opposed to something like 23 [depends on colorset])

A player could use a color selector to fill up their own personal colorset and save as favorites.

Transferring over five times as many bits for color data has some implications on load times for larger builds...
« Last Edit: October 07, 2009, 02:31:10 PM by Space Guy »

Removing spray can dataBlocks is no problem.

Great idea, I just don't know what I'd do with so many colors :o

I'd manage, though :D

We are currently living with 6-bit (64 possible colors) due to datablock limitations.
Wouldn't 32-bit colors allow for better looking builds?

1. The 32-bit "color" to which you're referring is a lie.  What you're actually talking about is 24-bit "color" (8 bits each for red, green, and blue) and then an 8-bit transparency value.  This 24-bit color space most frequently in use is known as the sRGB (standard RGB) color space.

2. Blockland already supports 24-bit colors with transparency.  When you connect to a server, the RGBA values of the server's color set are transfered to your client.  Currently, you can select 64 colors from the available 16.7 million colors.  Each color is assigned an ID (0...n).

3. The 6 bits you're talking about actually refers to the network traffic required to tell a client what color a brick is (decimal-based ID to binary).  For example:

60 = 111100, 61 = 111101, 62 = 111110, 63 = 111111

"Bit" stands for "binary digit", and can have the value of 0 or 1.  Each of the binary values above contains 6 "bits", so the server must transmit anywhere from 1 to 6 bits per brick to each client.  Allowing 7 bits would provide us up to 128 distinct colors from the available 16.7 million.  As for transmitting the hex values as you suggested, look at the number of bits required to transmit just the letter "A":

A = 01000001



The real solution here is to convert the paint can to use raycasts instead of projectiles, which will eliminate one datablock per color.  Then, just allow us 128 or 256 colors (7 or 8 bits, respectively).  I believe Badspot has had some ideas on how to really revamp the paint system since before v9.  Maybe he'll finally get around to implementing them.

Allowing the full 16.7 million colors is not only a terrible idea, it's completely unnecessary.

Allowing the full 16.7 million colors is not only a terrible idea, it's completely unnecessary.

I've always wanted a blend of amaranthine and aubergine on my roof; it'd really bring out the windows.

I've always wanted a blend of amaranthine and aubergine on my roof; it'd really bring out the windows.

You missed the entire point of what I said.  You can pick any of the 16.7 million colors you want.  You're just limited to a set of 64.

You missed the entire point of what I said.  You can pick any of the 16.7 million colors you want.  You're just limited to a set of 64.

I wasn't going to list off sixty-five different colors though, so I just picked a few of the weird ones I remember that are least likely to be in a choice of sixty-four.

I wasn't going to list off sixty-five different colors though, so I just picked a few of the weird ones I remember that are least likely to be in a choice of sixty-four.

We do need the ability to choose larger sets of colors, but 128 or 256 would be plenty.

how i can edit 128 or 256 color bit ?

Choosing your build colors from a well designed palette of 64 colors will look better than having access to all the colors in the world. It is a limitation but it is one that makes the game better.

I don't know bout you, but I don't want a collosal paint pallet hogging the bottom of my screen, and not to mention, scrolling through all those different colors would be a pain.

lol