[Effect] Color Fusion, formerly Color Overlay

Completed plugins, behaviors and effects.

Post » Thu Nov 04, 2010 2:53 pm

I didn't test it yet, but how does this differ from a solid color sprite with overlay on top of the image? I'm just curious, not saying it isn't useful or anything.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Nov 05, 2010 5:02 am

[quote="Davioware":30nh93kk]I didn't test it yet, but how does this differ from a solid color sprite with overlay on top of the image? I'm just curious, not saying it isn't useful or anything.[/quote:30nh93kk]
You should have tested it ;)

It works completely different. And that's why I was afraid of the name "color overlay".

The "overlay" effect is a special blend mode, that combines a multiply blend for dark areas and a screen blend for light areas. The result is a mixture of more contrast plus the mixed original and blend color.

The "color overlay" effect works more like a foto filter, or imagine you wear colored sunglasses while looking at the image. It replaces a certain amount of the original color by the selected color. The result is very natural, because in real life you lose contrast the darker it gets, and "color overlay" works similar. That's why it is very useful as a post effect for day-night-cycles and such. (You could have a stormy winter night, totally black, only lit dark blueish when lightning strikes, or a bright mid-sommer day ... all with the same set of sprites.)

Have a look at the differences here:
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Nov 05, 2010 8:52 am

Though... How the heck do you think you'd go about using this effect over multiple layers? I imagine it would require a canvas, but...

Edit: I'm a complete retard. "Grab layout" does the job perfectly, the REAL problem is erasing the effect using light sources...
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Fri Nov 05, 2010 3:22 pm

[quote="tulamide":10v632xa]You should have tested it

It works completely different. And that's why I was afraid of the name "color overlay".[/quote:10v632xa]

Yea sorry, I did test it when I got home, I just forgot to post here again. Nice effect! It makes tint plus pretty much obsolete. I know how overlay works, I just thought your effect used an overlay blending algorithm since it has overlay in the name. I recommend the name "RGB levels" or "Color fusion" for this effect. May I suggest values from 0-255 so it's easy to select an exact color?
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Nov 05, 2010 8:42 pm

[quote="Davioware":2z9gd986]Nice effect![/quote:2z9gd986]
Thank you :D

[quote="Davioware":2z9gd986]It makes tint plus pretty much obsolete.[/quote:2z9gd986]
I know I will sound like a nitpicker now, but "color overlay" is not just "Tint Plus" with intensity :) In fact, "Tint Plus" was the reason to create "color overlay". While "Tint Plus" just multiplies the original colors with the selected one channel based, "color overlay" replaces a certain amont (up to completely) of the original color with the selected one based on a third-weighted greyscale image. It keeps luminance, so to say (not exactly, but let's leave it for now).

The difference is pretty obvious: If you have a 100% solid blue sprite and apply "Tint Plus" with 100% red, the result is black.
original[0, 0, 1] * selected[1, 0, 0] = [0, 0, 0]

With "color overlay" you get dark red.
original[0, 0, 1] -> grey[0.333] -> original[0, 0, 1] * 0% + selected[1, 0, 0] * grey[0.333] * 100% = [0.333, 0, 0]




[quote="Davioware":2z9gd986]I recommend the name "RGB levels" or "Color fusion" for this effect. May I suggest values from 0-255 so it's easy to select an exact color?[/quote:2z9gd986]
Thanks again, you're the first proposing better suited names, I appreciate it much. "Color fusion" sounds pretty close to what exactly it does.
I was quite comfortable with the percentage values. But if channel values [0, 255] add to the comfort of using this effect, I will change it, of course. :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sat Nov 06, 2010 1:42 am

I know, I tested it against tint plus to see the exact difference. I know it's not just TP with intensity! :D
I'm just saying that It seems to do exactly what tint plus is supposed to be used for, but better. I geuss Tint plus is just faster. (if it's even a measurable difference, though I know TP is just a single multiplication instruction)
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Dec 14, 2010 3:22 pm

New version.

-renamed to Color Fusion
-RGB parameters expect a color value now (integer 0-255)

Download link updated in the first post
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Previous

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests