The Meaning of Life, the Universe, and Everything.
Join Date:
8/10/2012
Posts:
51
Minecraft:
StrongRhino
Member Details
Then you could craft colored glowstone and glowstone lamps, and strobe lights. This would be great for making a eerie mob arena. Also, it should work with torches. Supported!
I personnaly am a medival type builder, so i was like nah, that wouldnt help me.
But going back to it, it would be interesting to do it in a temple, or some kind of adventure map/puzzle.
Honestly even though for me the ideas for it would be some what limited, just about every kind of minecrafter could use this.
Also i think you should have a section on what kind of minecrafter could use it and for what reason.
Why?
Makes it more persausive,
and could appeal to a bigger audience.
I personnaly am a medival type builder, so i was like nah, that wouldnt help me.
But going back to it, it would be interesting to do it in a temple, or some kind of adventure map/puzzle.
Honestly even though for me the ideas for it would be some what limited, just about every kind of minecrafter could use this.
Also i think you should have a section on what kind of minecrafter could use it and for what reason.
Why?
Makes it more persausive,
and could appeal to a bigger audience.
Really? That's great! I am also a medieval-only builder :3
And colored glass and light are the only things I want to see most In MC.
It Isn't really my job to tell people what they can do with colored glass and colored light; that would take the creativity out of it But if people just think for about 10 min of all the things that are made out of transparent, colorful, shiny stuff, then they would find at least 100,000 things one could use colored glass and light for.(29,999 of those medieval.) -_^
Even if I could, there are some other projects I'd enjoy working on more. I don't know how to make it more efficient, I only have an idea how to make one that supports color. It's probably a bit too resource-heavy to include in Vanilla, but it would make a nice mod. I'll post it behind a spoiler, just in case anyone finds it useful.
The following is an idea of how to add colored blocklight to Minecraft as a mod. There's a chance it won't work, but it looks good on paper.
Storage
We're not going to use RGB colors internally, but xyY. The 'Y' (capital Y) here is luminance, and this corresponds nicely to the system Minecraft already has. We'll have to extend the light map with the remaining x and y, or chromaticity. I'm not sure if the usual 4 bits per ordinate will provide enough resolution to blend lights nicely, but using 8 bits sounds wasteful. Let's play it safe and go with 4 bits. So this costs 1 byte per block. It could be stored in a map file as a new NBT field, but this is optional. It would also be nice if this could be sent over the network, but I'm not sure if this can be done without sending a Vanilla client into a tailspin.
The color of a lamp is not specified in RGB, but in chromaticity as well. (This means you can't make a brown lamp, but you can make a dim red one and get almost the same results. It's actually pretty close to how light works in real life.)
Generating
Light physics work a bit strange in Minecraft; two lamps don't shine brighter than one. And we'd like to keep it that way, so Y stays the way Vanilla works. To calculate (x,y) we'll take some kind of weighed average of all contributing lamps. Cool trick: we can do a simple weighed linear interpolation on the chroma, and end up with a good approximation of what it would look like if we actually had several lights with different intensities shining on the same surface.
"Some kind of weighed average" is a bit vague on purpose. There's some of room for experimentation here to find out what looks nicest and doesn't grind the game to a halt. As per usual, we use the current minichunk (16x16x16) and its Moore neighbours to do all calculations in. The naive approach would be to pathfind back to all lamps we've found in the previous step, and blend them weighed according to their distance. Slow as molasses, doesn't use any extra memory, and accurate.
Another approach would be to keep the current "wavefront" way of spreading light, but to store some additional info in the wavefront about the contributing lights. Fast, small memory footprint, but not accurate. It could leave hard edges where the lamps should have been blended.
Yet another one would be to keep temporary maps for each lamp, generate them the Vanilla way, and then average all chromas using the light level as the weight. (The end result Y would be the maximum of all Y's.) Fast, uses gobs of memory, accurate.
Rendering
Everyone who has ever tried to make a colored light mod fondly remembers 1.7 beta, where you could simply set the vertex colors and be done with it. So one way to make this work is to revert back to this system. Players however prefer the increased FPS and smoother transitions of 1.8.
It would be nice if we could use shaders, but Minecraft runs on a wide variety of hardware because it uses OpenGL's fixed pipeline. So instead we'll do it the old-fashioned way through multitexturing. We need:
1. An 1x16 sunlight texture, mapping intensity to color. This one gets updated all the time for dusk and dawn.
2. A 16x256 texture for translating xyY back to RGB. This one gets updated for torchlight flicker.
Translating xyY to RGB is a good candidate for a lookup table. If we use 4 bits for x and y, and the usual 4 bits for Y, we can conveniently map it to a 16x256 texture. The combiner is then set up as follows:
The only reason this works is because the output of stage 2 gets clamped. This is how sunlight "overpowers" block light. 1.8 did this clamping in code, when the light texture was generated. We do the same, but now in hardware.
Modding & compatibility
This mod could exist as a client mod, a server mod, or both. As a pure client-side mod, it would be for decorative purposes only. As a server-side mod, it could be used to make color-specific light sensors. (A vanilla client wouldn't see the colored light, but the sensors would still work as advertised.)
There you are Nocte! I never know where I'll find you spreading complex waveform theory and whatnot next, but whenever I find where you've been it makes perfect sense in retrospect.
Thank you so much for what you've put into that spoiler above! I too want you to keep working on those "other" projects (knowingly winks and does secret handshake) but anything at all you can do to make perfect stained glass a reality in Minecraft would fully have my support too! I've wanted this for a long time.
And unfortunately I'm not sure anyone else here is likely to be able to use even that enlightening info you've thoughtfully laid out for them in your spoiler any time soon. As such I'd like to add my encouragement to your continued work on the Stained Glass project, and if there is a way for me to help or round up other types of help for other aspects of such a mod then please let me know.
btw: I guess I should read back further in the thread but; Am I right that your proposed solution would get rid of that one problem that has plagued stained glass mods so far? Where when you look through the stained glass any water or clouds behind it become invisible?
That screenshot is one I made with GlassCraft back in MC 1.1. The mod has been updated for 1.2.5 btw.
- Behind the Yellow Stained Glass you can see the irrigation ditch in the Villager farm. It is full of water, but the water is invisible through the glass.
And just for the sake of more Stained Glass Inspiration for everyone, below is a Spoiler full of Stained Glass screenshots from AlexM's Coloured Glass and Panes Mod thread OP.
Oh! So you are talking about adding the ability for colored glass to actually affect the color of light after it goes through it and how that light color change affects whatever is lit by it? Glorius!! And here I had just settled for the idea of having the glass be translucent and colored.. You are taking it to a far deeper and more incredible level.
Yes please. (And yes, I should have read back further first. Sorry!)
[EDIT]
btw: Here are a couple shots of my Blue 'Water Lighting fixture' in my Mushroom Farm. In vanilla minecraft.
LOL! Now I finally have it. Colored light sources would be fantastic!
I can imagine how beautiful it would be to have colored light spilling out of the village tavern at night, to see colored "beacons" and a red glow coming from the back of a cave, muhahaha.
Yes please.
Rollback Post to RevisionRollBack
- The Cubic Chunks Mod is back! Be a part of it's rebirth and Development.
-- Robinton's Mods: [ Mirror ] for some of his Mods incl Cubic Chunks Mod, due to DropBox broken links.
I was already making this as a mod (and exactly the same way as you described it which is scary) but was worried about re-writing the lighting system lol. But anyways this is a nice idea, I would definitely want to see this in minecraft.
There you are Nocte! I never know where I'll find you spreading complex waveform theory and whatnot next, but whenever I find where you've been it makes perfect sense in retrospect.
Thank you so much for what you've put into that spoiler above! I too want you to keep working on those "other" projects (knowingly winks and does secret handshake) but anything at all you can do to make perfect stained glass a reality in Minecraft would fully have my support too! I've wanted this for a long time.
And unfortunately I'm not sure anyone else here is likely to be able to use even that enlightening info you've thoughtfully laid out for them in your spoiler any time soon. As such I'd like to add my encouragement to your continued work on the Stained Glass project, and if there is a way for me to help or round up other types of help for other aspects of such a mod then please let me know.
btw: I guess I should read back further in the thread but; Am I right that your proposed solution would get rid of that one problem that has plagued stained glass mods so far? Where when you look through the stained glass any water or clouds behind it become invisible?
That screenshot is one I made with GlassCraft back in MC 1.1. The mod has been updated for 1.2.5 btw.
- Behind the Yellow Stained Glass you can see the irrigation ditch in the Villager farm. It is full of water, but the water is invisible through the glass.
And just for the sake of more Stained Glass Inspiration for everyone, below is a Spoiler full of Stained Glass screenshots from AlexM's Coloured Glass and Panes Mod thread OP.
I think your mod looks beautiful if the only reason mojang won't put colored glass in vanilla is because you can't see 2 opacities through each other, I think this is a perfect example that colored glass can be just as effective this way without the fancy transparency blending. I think they should go for it. I love how vibrant your colors are.
But going back to it, it would be interesting to do it in a temple, or some kind of adventure map/puzzle.
Honestly even though for me the ideas for it would be some what limited, just about every kind of minecrafter could use this.
Also i think you should have a section on what kind of minecrafter could use it and for what reason.
Why?
Makes it more persausive,
and could appeal to a bigger audience.
If it does I support. If it doesn't I support anyway.
Really? That's great! I am also a medieval-only builder :3
And colored glass and light are the only things I want to see most In MC.
It Isn't really my job to tell people what they can do with colored glass and colored light; that would take the creativity out of it
~Epic Space Milk Muffin
There you are Nocte! I never know where I'll find you spreading complex waveform theory and whatnot next, but whenever I find where you've been it makes perfect sense in retrospect.
Thank you so much for what you've put into that spoiler above! I too want you to keep working on those "other" projects (knowingly winks and does secret handshake) but anything at all you can do to make perfect stained glass a reality in Minecraft would fully have my support too! I've wanted this for a long time.
And unfortunately I'm not sure anyone else here is likely to be able to use even that enlightening info you've thoughtfully laid out for them in your spoiler any time soon. As such I'd like to add my encouragement to your continued work on the Stained Glass project, and if there is a way for me to help or round up other types of help for other aspects of such a mod then please let me know.
btw: I guess I should read back further in the thread but; Am I right that your proposed solution would get rid of that one problem that has plagued stained glass mods so far? Where when you look through the stained glass any water or clouds behind it become invisible?
That screenshot is one I made with GlassCraft back in MC 1.1. The mod has been updated for 1.2.5 btw.
- Behind the Yellow Stained Glass you can see the irrigation ditch in the Villager farm. It is full of water, but the water is invisible through the glass.
And just for the sake of more Stained Glass Inspiration for everyone, below is a Spoiler full of Stained Glass screenshots from AlexM's Coloured Glass and Panes Mod thread OP.
- The Cubic Chunks Mod is back! Be a part of it's rebirth and Development.
-- Robinton's Mods: [ Mirror ] for some of his Mods incl Cubic Chunks Mod, due to DropBox broken links.
- Dungeon Generator for the Open Cubic Chunks Mod
- QuickSAVE-QuickLOAD for the Open Cubic Chunks Mod
Yes please.
[EDIT]
btw: Here are a couple shots of my Blue 'Water Lighting fixture' in my Mushroom Farm. In vanilla minecraft.
- The Cubic Chunks Mod is back! Be a part of it's rebirth and Development.
-- Robinton's Mods: [ Mirror ] for some of his Mods incl Cubic Chunks Mod, due to DropBox broken links.
- Dungeon Generator for the Open Cubic Chunks Mod
- QuickSAVE-QuickLOAD for the Open Cubic Chunks Mod
I can imagine how beautiful it would be to have colored light spilling out of the village tavern at night, to see colored "beacons" and a red glow coming from the back of a cave, muhahaha.
Yes please.
- The Cubic Chunks Mod is back! Be a part of it's rebirth and Development.
-- Robinton's Mods: [ Mirror ] for some of his Mods incl Cubic Chunks Mod, due to DropBox broken links.
- Dungeon Generator for the Open Cubic Chunks Mod
- QuickSAVE-QuickLOAD for the Open Cubic Chunks Mod
I SALUTE YOU
I think your mod looks beautiful
~Epic Space Milk Muffin
no simon
Check out or Let's Plays. If you like, be sure to leave a comment. Have a new map? Let us know, we'd love to play it!