I've seen it in other games but it should be simple to use one data value and one picture of the cake to make all the color options you want. I've seen this used in other games.
First you color the cake in the texture file, and ALL of the color you want to be interchangeable you make in a color that you don't want. Let's say slightly off white: 254,254,254 When a cake is made its color value is 0 which the game will recognise and it will scan the texture file and replace all 254 values with 255's to make the cake white. When you dye it red it will change these values to 255,0,0. In effect instead of having multiple cakes in the texture file you only have one cake and an algorithm that changes it's color based on one value's setting. There case solved. One block ID, one (well two since sides are include) location used in the texture file, and one data value for color. This same method could be used to create split colored frosting cake. Make one half with 254 values, and the other half with 1 values. (so you can draw it and see the difference in the texture file) This would require more additions to the algorithm that controls the color values but it will work. Notch could even use this method to take away all the damage values and such to colored wool.
I've seen it in other games but it should be simple to use one data value and one picture of the cake to make all the color options you want. I've seen this used in other games.
First you color the cake in the texture file, and ALL of the color you want to be interchangeable you make in a color that you don't want. Let's say slightly off white: 254,254,254 When a cake is made its color value is 0 which the game will recognise and it will scan the texture file and replace all 254 values with 255's to make the cake white. When you dye it red it will change these values to 255,0,0. In effect instead of having multiple cakes in the texture file you only have one cake and an algorithm that changes it's color based on one value's setting. There case solved. One block ID, one (well two since sides are include) location used in the texture file, and one data value for color. This same method could be used to create split colored frosting cake. Make one half with 254 values, and the other half with 1 values. (so you can draw it and see the difference in the texture file) This would require more additions to the algorithm that controls the color values but it will work. Notch could even use this method to take away all the damage values and such to colored wool.
This is another way it could be done. However, personally, I would think just a pure, smooth, color with no texture would look a little weird.
Not sure if this possible, but a third way would be that a specific hue was the interchange able color, and the saturation and value would change relatively. This would allow for textured cake frosting and not take lots of new graphics, the only disadvantage being that it may be hard to code.
The Meaning of Life, the Universe, and Everything.
Join Date:
11/29/2010
Posts:
61
Member Details
I like the idea. Making it possible to dye things besides wool and sheep (cake, beds, books, etc.) has always seemed a good idea to me. Practical Application? Give me the practical application of dyes in the 1st place! They look nice and make the game more fun. Not every suggestion has to have an original application. Especially if the suggestion doesn't add entire new blocks like ores and things.
sorry, cannot support this. takes up too much room, i just want different blocks, not the same one except colored. no thanks.
Did you read any of the other pages of comments?
As I said earlier, you cannot "take up too much room" of the infinity. Notch can easily add more image files, and should not limit himself by one file.
I will make this more evident in the OP.
The only thing I have about all the requests for multiple new texture/colors is that it eats up what little texturing we have in the game.
It all comes down to. Do I want five different textures of cake, or do I want new unique blocks?
I guess Notch can always make terrain larger or move things like the decorative blocks/cake textures to an alternate texture file. Until one of the two happens I just can't find myself getting behind more colored items than we have now, with the remote and possible exception of glass.
Don't get me wrong I'm in no way shooting the idea down or writing it off, when given a choice I will choose variety.
Like I said earlier, you can't take up too much of infinity! Notch can always add more files, so he shouldn't and isn't limited by file space.
I approve.
Sitting In Minecraft:http://www.minecraftforum.net/viewtopic.php?f=1&t=214552
Lapis Vases:http://www.minecraftforum.net/viewtopic.php?f=1&t=195330
IP: 203.17.62.36
Yes, good point. I'll work on one that doesn't have cake icons.
Other than that... I APPROVE!!!!
I personally want glowstone cake... glow-in-the-dark cake anyone?
I don't think so.
You do realize it would just use the already existing dyes, right?
I have all the colors in there.
Are you kidding? CALAMARI!
First you color the cake in the texture file, and ALL of the color you want to be interchangeable you make in a color that you don't want. Let's say slightly off white: 254,254,254 When a cake is made its color value is 0 which the game will recognise and it will scan the texture file and replace all 254 values with 255's to make the cake white. When you dye it red it will change these values to 255,0,0. In effect instead of having multiple cakes in the texture file you only have one cake and an algorithm that changes it's color based on one value's setting. There case solved. One block ID, one (well two since sides are include) location used in the texture file, and one data value for color. This same method could be used to create split colored frosting cake. Make one half with 254 values, and the other half with 1 values. (so you can draw it and see the difference in the texture file) This would require more additions to the algorithm that controls the color values but it will work. Notch could even use this method to take away all the damage values and such to colored wool.
This is another way it could be done. However, personally, I would think just a pure, smooth, color with no texture would look a little weird.
Not sure if this possible, but a third way would be that a specific hue was the interchange able color, and the saturation and value would change relatively. This would allow for textured cake frosting and not take lots of new graphics, the only disadvantage being that it may be hard to code.
Sorry... I assumed you would have had all the available colors in the in-game pictures... not just the terrain.png
Did you read any of the other pages of comments?
As I said earlier, you cannot "take up too much room" of the infinity. Notch can easily add more image files, and should not limit himself by one file.
I will make this more evident in the OP.
Fixed it for you.
Cool suggestion too!
Thanks! Forgot about cookies.
Time to update my default texture pack folder!
(No, not Mr.Obama, Notch)
It all comes down to. Do I want five different textures of cake, or do I want new unique blocks?
I guess Notch can always make terrain larger or move things like the decorative blocks/cake textures to an alternate texture file. Until one of the two happens I just can't find myself getting behind more colored items than we have now, with the remote and possible exception of glass.
Don't get me wrong I'm in no way shooting the idea down or writing it off, when given a choice I will choose variety.