[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
151
S
53
G
17
Posts: 711
Reputation: 17,775

Post » Mon Oct 01, 2012 4:06 am

Awesome!
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

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
Hobbyist Game Developer
Technology, Travelling, and Video Games Enthusiast
www.enliktjioe.com
B
46
S
11
G
7
Posts: 176
Reputation: 7,828

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,381

Post » Mon Oct 01, 2012 12:21 pm

FANTASTIC!!!
B
163
S
39
G
13
Posts: 234
Reputation: 18,312

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

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
151
S
53
G
17
Posts: 711
Reputation: 17,775

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Next

Return to Effects

Who is online

Users browsing this forum: Gigatron and 0 guests