Stormworks: Build and Rescue

Stormworks: Build and Rescue

XLjedi Jun 19, 2020 @ 4:37am
RGB Lights
So, I have a composite MC with an on/off toggle and slider properties that let me set the R1,R2, G1... variables between 0-255 and that all works fine for a basic 2-color RGB light toggle.

However, I notice there are no On/Off connectors on the lights themselves?

Is it intended that the RGB color (0, 0, 0) is equivalent to Off?

...or do these things continue to draw power with a (0, 0, 0) color?

If so, I will probably just add an On/Off output to the MC that multiplies all the values by zero.
< >
Showing 1-13 of 13 comments
GrumpyOldMan Jun 19, 2020 @ 5:14am 
Originally posted by XLjedi:
So, I have a composite MC with an on/off toggle and slider properties that let me set the R1,R2, G1... variables between 0-255 and that all works fine for a basic 2-color RGB light toggle.
RGB lights require an input between 0-1 for each channel.
Putting out 0 on all channels emits no light.
XLjedi Jun 19, 2020 @ 5:28am 
Originally posted by GrumpyOldMan:
Originally posted by XLjedi:
So, I have a composite MC with an on/off toggle and slider properties that let me set the R1,R2, G1... variables between 0-255 and that all works fine for a basic 2-color RGB light toggle.
RGB lights require an input between 0-1 for each channel.
Putting out 0 on all channels emits no light.

Odd... it seems to take 0-255 just fine on my MC? I'm leaving it that way, it make far more sense.

I realize it emits no light... Does it draw power?
I'll just test it myself.
XLjedi Jun 19, 2020 @ 7:53am 
I confirmed the color [0,0,0] draws no power, so effectively it is the Off condition for the light.

...and I also stand corrected!

RGB is a 0-1 value for each channel. I didn't notice because I was just maxing out the sliders for Red, Green, Blue, etc. in my testing.

So, I just added the MC logic to scale my 0-255 input sliders to a 0-1 output and it all works fine now. Appreciate the heads-up there!
GrumpyOldMan Jun 19, 2020 @ 8:00am 
Originally posted by XLjedi:
Originally posted by GrumpyOldMan:
RGB lights require an input between 0-1 for each channel.
Putting out 0 on all channels emits no light.

Odd... it seems to take 0-255 just fine on my MC? I'm leaving it that way, it make far more sense.

I realize it emits no light... Does it draw power?
I'll just test it myself.

Putting in any value above 1 won't make a difference, since the light will produce the respective RGB value of 255 when receiving an input >=1.

The wiki and ingame tooltip tell you it needs a value between 0-1.
With all inputs at 0 it doesn't consume any electricity.

Won't see this if you only put in basic colors like 255 0 0 or similar.

Edit: Glad you got it figured, heh.
Last edited by GrumpyOldMan; Jun 19, 2020 @ 8:02am
XLjedi Jun 19, 2020 @ 8:30am 
If anyone is interested in the RGB controller logic, I posted it here:

https://steamcommunity.com/sharedfiles/filedetails/?id=2135104796
THX-11-38 Jun 19, 2020 @ 10:00am 
I love Stormworks for it is forcing you to create and compose solutions even for basic blocks and mechanics. It may be difficult for some players, but doesn't it motivate to learn new things?
Last edited by THX-11-38; Jun 19, 2020 @ 10:01am
Ra-Ra-Rasputin Jun 20, 2020 @ 6:09pm 
Should note here that 255³ is only ca. 16.5M different colors, which is a very small spectrum compared to having in excess of a thousand values between 0 and 1 as decimal points. That's why vast majority of RGB, CMYK and HSV applications use floating decimals between 0 and 1 instead of byte numbers.
Last edited by Ra-Ra-Rasputin; Jun 20, 2020 @ 6:10pm
XLjedi Jun 20, 2020 @ 7:55pm 
Originally posted by Ra-Ra-Rasputin:
Should note here that 255³ is only ca. 16.5M different colors, which is a very small spectrum compared to having in excess of a thousand values between 0 and 1 as decimal points. That's why vast majority of RGB, CMYK and HSV applications use floating decimals between 0 and 1 instead of byte numbers.

You're joking right?

I think I'm good limiting my light color options to just the 16.5 million. I also like to match the light colors exactly to the non-RGB lights which the devs seemed content using 0-255.
XLjedi Jun 20, 2020 @ 8:50pm 
Originally posted by THX-11-38:
I love Stormworks for it is forcing you to create and compose solutions even for basic blocks and mechanics. It may be difficult for some players, but doesn't it motivate to learn new things?

Indeed, there aren't too many sandboxes that are as nice.
Ra-Ra-Rasputin Jun 21, 2020 @ 2:40am 
16.5M colors is less than half of the visible color spectrum, here's a handy chart:
https://i.stack.imgur.com/lHv0b.jpg
sRGB refers to 16.5M colors.

For comparison, here's an image in sRGB
https://i.imgur.com/0iKo82B.png
And the same image in ProPhoto color range
https://i.gadgets360cdn.com/large/st_mary_lake_sunset_image_gaurav_agrawal_1592044191626.jpg

Can you tell the difference?
Last edited by Ra-Ra-Rasputin; Jun 21, 2020 @ 2:48am
XLjedi Jun 21, 2020 @ 4:04am 
Originally posted by Ra-Ra-Rasputin:
16.5M colors is less than half of the visible color spectrum, here's a handy chart:
https://i.stack.imgur.com/lHv0b.jpg
sRGB refers to 16.5M colors.

For comparison, here's an image in sRGB
https://i.imgur.com/0iKo82B.png
And the same image in ProPhoto color range
https://i.gadgets360cdn.com/large/st_mary_lake_sunset_image_gaurav_agrawal_1592044191626.jpg

Can you tell the difference?

I could honestly care less... we're talking about colors for blinky lights. I might need about 5 for my boat and I want to assign them consistently with 0-255 values from the in-game color selector.

As it relates to this thread (probably the whole game too) this is just pointless minutiae.
Last edited by XLjedi; Jun 21, 2020 @ 4:24am
Ra-Ra-Rasputin Jun 21, 2020 @ 8:27am 
I think you're missing the point here. I'm trying to enlighten why they aren't 0-255 values :)
XLjedi Jun 21, 2020 @ 8:38am 
Originally posted by Ra-Ra-Rasputin:
I think you're missing the point here. I'm trying to enlighten why they aren't 0-255 values :)

OK, great... the devs don't seem to care about it as an option for their standard color selector.

Repectfully, however. I do appreciate your input, thank you.

Someone at some point might find that bit of info helpful for their rainbow light dance machine engine.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jun 19, 2020 @ 4:37am
Posts: 13