[Effect] Alpha Threshold

Share your Construct 2 effect files

Post » Mon Oct 01, 2012 3:52 am

Finally got the time to release this.

Description
Alpha values below the threshold are converted to transparent and above to opaque with a smoothness control.

It's useful to simulate metaballs when applied to a transparent layer and get fluid-like effects. When combined with physics can simulate a pseudo liquid, and with particles can simulate fire.

Parameters
Threshold: Alpha threshold from 0 to 100. Controls where to put the edge based on the opacity value.

Smoothness: Controls the smoothness of the edge.

Flat Colors: Set to 1 to unpremultiply the colors and make them flat. 0 preserves the black shading caused by premultiply.



View Demo

Downloads
Download Effect
Download Demo capx

How to Install
Just drop the two files under your "Construct2/Effects/" folder.Animmaniac2012-10-01 04:11:13
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Mon Oct 01, 2012 4:06 am

Awesome!
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Mon Oct 01, 2012 4:10 am

Indeed, awesome effect, I specially like the fire one. Well done!
B
16
S
7
G
4
Posts: 29
Reputation: 4,957

Post » Mon Oct 01, 2012 5:39 am

Really like it :)
Enlik Tjioe
Game Programmer

Image

www.touchten.com
B
45
S
11
G
6
Posts: 176
Reputation: 7,289

Post » Mon Oct 01, 2012 8:02 am

Wow, very nice effect, thank for sharing it !
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Mon Oct 01, 2012 12:21 pm

FANTASTIC!!!
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Mon Oct 01, 2012 1:01 pm

Very cool, I hope the peformance doesn't take a hit.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Thu Oct 18, 2012 10:21 pm

Does increasing 'smoothness' impact performance?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Oct 18, 2012 10:40 pm

No, you can use the maximum visual appealing smoothness without problem. I believe only 'Flat Colors' parameter can have some impact on performance and that should probably be not that meaningful.
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Fri Oct 19, 2012 12:10 am

OK, sounds good. When you say that 'flat colors' has an impact, should I have it on or off? I'm using a 'set rgb' filter anyway so it's meaningless to me whether it should be on or off.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Next

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests