Request : color swap

New releases and general discussions.

Post » Fri Jul 17, 2009 12:18 am

Swap a color in a sprite with another. I need it, can someone create it? :oops:

Sorry for the double thread, but I was doubtiful on where to post it.
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Fri Jul 17, 2009 7:06 am

It'd need to be a shader, but it's quite simple to do.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Jul 17, 2009 10:33 am

that would be amazing feature
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Fri Jul 17, 2009 10:35 am

It wouldn't be very useful at all unless you had solid colour sprites, or very specific graphics.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Jul 17, 2009 12:13 pm

for the pixel lovers :D
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Fri Jul 17, 2009 2:31 pm

maybe a range thing might not be so useless rich
a range of colors being shifted by a given amount
i only know the extremely basic basics,
that new guy, whatshisface was explaining to me in chat the other day, but this seems doable, even with my uber limited knowledge
so if no one else does, ill see if i can throw something together this weekend
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jul 17, 2009 2:41 pm

Maybe I'm not seeing it, but wouldn't a range shader need 9 parameters? RGB start of range, RGB end of range, RGB to replace with?

Wouldn't it then need a loop to check for the range?

Maybe there's a way I haven't pondered.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Jul 17, 2009 2:47 pm

Even single color replacing would be useful for limited palette sprites. A range feature could be useful too.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Jul 17, 2009 3:40 pm

no, i think youre right rich,
and it you could only replace one color or range of colors, which i hadnt considered before,
so yeah...scratch that..sorry
unless someone really wants to replace one single color per effect this is loaded as
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jul 17, 2009 4:00 pm

It will be very useful for my Megaman project. Please, can someone create it? :)
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests