Wah? oh, sorry. I thought you were talking to nocte, that isn't my texturepack. That's just a screenshot I took of Nocts' colored glass test video. You would have to ask him what it is
Wah? oh, sorry. I thought you were talking to nocte, that isn't my texturepack. That's just a screenshot I took of Nocts' colored glass test video. You would have to ask him what it is
Really? Ok
Well I guess I'll have to pm him or something for the texturepack.
Thanks, but using someone else's mod to demonstrate what I would like in my mod probably isn't such a good Idea.
Since I thought it was just a texture pack, I was gonna ask you if I could use it to demonstrate my ideas. But now that I know it's a mod (and that it isn't yours), I would rather not have to ask the maker for permission to use it or something like that.
The less hoops I gotta jump through the better lol.
As a side note, you seem to know a lot about coding and game physics, (stuff I know little about). I would like to know your take on light based redstone devices.
Is it possible to code it so a "light sensor block" only picks up the color of light that matches the color of the glass placed in front of it?
In other words, is it even possible, code-wise, to do what the concept image I made shows?
It's just for illustration purposes, right? It shouldn't be a problem just as long as you mention the mod you've used to capture the screenshot.
Yes, that would be fairly easy. The trickiest bit would be to respond to the light color of the air block behind the tinted glass.
There could be two ways to rewrite Minecraft's light system to support colored light. One is to have a simple red-green-blue triplet. You'd have to calculate the full-strength color back from the dimmer version you're picking up, and comparing that one against the glass block's color (within a margin; nearby lights could change the color slightly, so you probably don't want exact matching).
The other way to store it is as a hue and an intensity. This would make your life a little easier, since you can now compare the hues directly.
Oh cool, so it is possible.
I understand only about 80% of what you said,but that's enough for a general understanding I guess.
When you said "behind the tinted glass" Does that mean there would need to be an available air block in front of the sensor block for it to work? Because the glass is supposed to be directly in front of the sensor, to cover the light capturing lens or something like that, and act as a filter to all other colors of light.
But I guess if there was a block in front of the sensor, even if it's transparent, then the light level would technically be 0 right? Since the sensor reads the light level of the space in front of it, if there is a block there it wouldn't be able to read the light level, even if that block is transparent like glass.
I was thinking about the air block on the other side of the glass block. So you have the sensor, the filter, and an empty space.
Measuring the light levels inside the block would also work, but that also depends on whether tinted glass changes the color of the light passing through it. For the suggestion in the opening post to work, this shouldn't be the case. But perhaps people would prefer if it did? In that case, you can either check the light level inside the glass block (which could mean that a red filter also responds to yellow or white light), or you can check it right before it goes through the filter (and you can make an exact match).
Oh, Alright that makes sense. That's actually what I was hoping for.
The idea behind the filters is so the light sensor block essentially has different channels that react to different colors of light, so I guess checking it before would be better, so as not to have a red filter react to yellow and white light as you said.
That way, piston contraptions could be used rather effectively to change the color of light emitting from a light source, and change the signals being sent by the sensors. The example I showed is a simple form of that, though I can imagine more complex systems utilizing several colors and several sensors, as well as the light blending mechanic in the OP of this thread.
That combined with the "reverse glowstone" and other "Darkness emitter" ideas will provide quite a bit of possibilities for light-based redstone devices.
I believe it will lead to some rather interesting redstone devices
Well, after seeing this, I attempted to create it.
What I discovered, is minecraft's lighting system works like this:
Light is "white / clear". Torches amplify that.
However, it is quite easy to change the color of the light in the whole world. I have not found a way to make a torch emit a different colored light. (Mostly because I don't know openGL at all. :P)
I was thinking about the air block on the other side of the glass block. So you have the sensor, the filter, and an empty space.
Measuring the light levels inside the block would also work, but that also depends on whether tinted glass changes the color of the light passing through it. For the suggestion in the opening post to work, this shouldn't be the case. But perhaps people would prefer if it did? In that case, you can either check the light level inside the glass block (which could mean that a red filter also responds to yellow or white light), or you can check it right before it goes through the filter (and you can make an exact match).
why not have a GUI for the sensor block and you place the glass block of choice inside the sensor?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm not sure how this mod does with the colored light thing though. (Ex. light shone through a green glass block would be green)
I ESPECIALLY love the fact that you can find them underground, growing as "crystals". I really hope this gets implemented.
Sig'd
I got these hacked legendaries from a friend.
Minecraft 1.12.2 / Forge 14.23.4.2705
~Epic Space Milk Muffin
You never answered my question muffin
Wah? oh, sorry. I thought you were talking to nocte, that isn't my texturepack. That's just a screenshot I took of Nocts' colored glass test video. You would have to ask him what it is
~Epic Space Milk Muffin
Really? Ok
Well I guess I'll have to pm him or something for the texturepack.
Since I thought it was just a texture pack, I was gonna ask you if I could use it to demonstrate my ideas. But now that I know it's a mod (and that it isn't yours), I would rather not have to ask the maker for permission to use it or something like that.
The less hoops I gotta jump through the better lol.
As a side note, you seem to know a lot about coding and game physics, (stuff I know little about). I would like to know your take on light based redstone devices.
Is it possible to code it so a "light sensor block" only picks up the color of light that matches the color of the glass placed in front of it?
In other words, is it even possible, code-wise, to do what the concept image I made shows?
Oh cool, so it is possible.
I understand only about 80% of what you said,but that's enough for a general understanding I guess.
When you said "behind the tinted glass" Does that mean there would need to be an available air block in front of the sensor block for it to work? Because the glass is supposed to be directly in front of the sensor, to cover the light capturing lens or something like that, and act as a filter to all other colors of light.
But I guess if there was a block in front of the sensor, even if it's transparent, then the light level would technically be 0 right? Since the sensor reads the light level of the space in front of it, if there is a block there it wouldn't be able to read the light level, even if that block is transparent like glass.
Correct me if I'm wrong please.
Oh, Alright that makes sense. That's actually what I was hoping for.
The idea behind the filters is so the light sensor block essentially has different channels that react to different colors of light, so I guess checking it before would be better, so as not to have a red filter react to yellow and white light as you said.
That way, piston contraptions could be used rather effectively to change the color of light emitting from a light source, and change the signals being sent by the sensors. The example I showed is a simple form of that, though I can imagine more complex systems utilizing several colors and several sensors, as well as the light blending mechanic in the OP of this thread.
That combined with the "reverse glowstone" and other "Darkness emitter" ideas will provide quite a bit of possibilities for light-based redstone devices.
I believe it will lead to some rather interesting redstone devices
-
View User Profile
-
View Posts
-
Send Message
Retired StaffWhat I discovered, is minecraft's lighting system works like this:
Light is "white / clear". Torches amplify that.
However, it is quite easy to change the color of the light in the whole world. I have not found a way to make a torch emit a different colored light. (Mostly because I don't know openGL at all. :P)
But it is definitely possible.
why not have a GUI for the sensor block and you place the glass block of choice inside the sensor?