Controllable Color Customizer
I'm working on an action RPG game where player can customize their character but I'm having trouble creating a mechanic to allow them to customize their colors. I plan on using three sliders, one that controls the hue cycle, a second for the tint amount, and a third for the brightness. Any suggestions on how to resolve this?
-
Seems to me that the solution you proposed with 3 sliders would work fine.
I’ve also done this same thing using three sliders but to control the RGB values instead of hue cycle -
It’s useful to know that the combiner and splitter can be used to get the RGB components to colors.
If you hook up 3 sliders to a combiner and then input the combiner to the objects’ color you can control the tint color -
You could probably get this, yeah.
Use the hue shift setting for the hue. Note that this setting uses the spraypainted surface colours of the sculpt itself, not the tint colour.
Set the tint colour to white, and use the tint amount slider for brightness.
Unsure what you mean about the tint amount, as you didn't specify using the tint for anything.
Another part you might use is the saturation setting, which again affects the spraypainted colours. -
Alternatively, there is a HSL chip someone made which spits out a "colour" fat wire which you could then plug into the tint colour. It's a little thermo-heavy though, so you may want to do some smart logic about producing that fat-wire value, freezing it with a signal manipulator, and then destroying the HSL chip to save space at runtime. Or just save out the resulting RGB values in persistent variables for use in the actual scenes. Up to you.
-
'@TAPgiles: I want to use the tint amount for the shades of colors. For example, if I have the brightness set to zero for black and the color set to red, changing the tint amount would allow me to pick a color between black and red. I want this to be possible for shades of white too.
-
Oh I see. So yeah--I'd make the spraypaint full-red or whatever. Use the hue shift to let the player change that to any colour.
Then set the tint to somewhere between black and white. Probably set it to black, use a keyframe recorded to set it to white. Then half-power it to whatever amount to set the brightness.
And then set the tint amount. -
Thanks, TAP, I'll try it out and see if it works.
-
Looks like it worked! Though I am getting a weird side effect when the brightness is turned all the way up and the object is colored red.
-
Ooh--what kind of thing? Want to share it with me?
-
It turns into a magenta kind of color. I published it last night at the time of this post and made it remixable so you are more than welcome to take a look at it. Just search for Color Customizer.
-
If you are interested, i have a creation for that. Its called "Functional ingame colour palette". Its like the real dreams colour wheel but In-Scene controlled by the imp. 2% gameplay
Please sign in to leave a comment.