Quantcast
Channel: Latest Questions by esitoinatteso
Viewing all articles
Browse latest Browse all 92

Choose color/palette swap?

$
0
0
**Hi pals!** I've been wandering throughout a lot of links and webpages all talking almost about what I'd like to do, but I couldn't understand none of them. As usual, not only I admit my knowledge of the argument itself is pretty lacking, but also the inability to have a talk with someone who can actually explain it to me in a more intelligible way, you know, it's not really helpful. **So what's this all about?** I'm about to color some drawings with which I plan to make a character in a 2d videogame. I'll import them in Unity as one big atlas. Correct me if I'm wrong, when I do this the original atlas is considered to be a texture, while what I trim from it is a sprite, right? Well then, **what I'd like to do is to let players choose from a 255 RGB ramp the color they'd like to represent with a certain portion of the sprite.** In other words... **when I'm in Photoshop and want to change an image's colors I just press Command+U** and a wonderful window pops up complete with a set of HSL/HSV ramps. To prevent all colors to change I could do many things, usually I just keep different colors on different layers and that's it. Let's pretend I already know how to make a 255 RGB ramp and display it, then **what should I do to pick a color on my original texture and change it to another one?** Maybe one that I've just selected with, say, my mouse from that ramp? **This transformation will apply to all the sprites derived from that texture?** Why should I need to color my texture in grayscale... I mean, different colors are just different, what's the point in having them depicted with a certain shade of gray in the first place? **Does what I'm asking make sense to you?** Plus, is this thing also known as palette swapping? I know those are a bunch of topics and I'm really sorry about it, but I have to understand this thing as soon as I can and usually the faster way I know of is asking to you guys. **Thanks** and sorry for my english!

Viewing all articles
Browse latest Browse all 92

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>