[Effect] Simple Glow

Share your Construct 2 effect files

Post » Mon Nov 25, 2013 6:02 am

A friend of mine is working on a glow effect for me so you don't have to do the double sprite thing.

Here is an example of it now. Stepped antialias because of the gif.



I'm curious what else people would want on this.

These were my ideas for the settings and features.
-Intensity (opacity)
-Radius
-Color
-Follow boundary, not just a circle

Downloads

Version 0.1: https://dl.dropboxusercontent.com/u/122492/Downloads.7zfirebelly2014-02-06 21:48:51
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Post » Mon Nov 25, 2013 7:09 am

Following a boundary/alpha would be very useful. It seems to be more of an edge glow than a post effect that would be based on threshold, right?
B
89
S
47
G
25
Posts: 535
Reputation: 21,827

Post » Mon Nov 25, 2013 4:49 pm

It's is basically an edge glow, which is something I had been looking for when I wanted to do faux lighting. Also possible is using a mask to mimic lighting. Although this requires a mask sprite.




I'm going to work with my buddy to see if follow edges can be done. The main concern is performance, this thing might be an issue on slower machines or lots of sprites.
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Post » Thu Nov 28, 2013 4:19 pm

Very Nice effect, do you plan to share it ?

Actually for the same result i need to use big bitmap with alpha that isn't perfect at all.
B
85
S
14
G
6
Posts: 72
Reputation: 7,237

Post » Sun Dec 01, 2013 1:10 am

Yeah, cleaning it up right now, will post soon.
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Post » Sun Dec 01, 2013 1:48 am

As far as I can tell, the only way to make the bloom effect is to build upon an edge detection algorithm that's applied to texture2D(samplerFront, vTex). Since you need to apply an extension on the bounding box in the XML file for this effect to be any decent, it makes things a little weird.

Any extension in the XML file turns the entire screen into normalized texture coordinates. So with an extension, the center of the screen is <0.5, 0.5>, whereas without, the center of the sprite has texture coordinates <0.5, 0.5>.

Should be looking into it after finals.
B
3
Posts: 3
Reputation: 181

Post » Sat Dec 14, 2013 10:16 pm

Looking forward to this one!
B
8
S
4
Posts: 120
Reputation: 1,266

Post » Sun Dec 15, 2013 4:07 am

This is Awesome! I really would love to use this effect for my sandbox game.It would be perfect for lighting.Is it possible to change how round the glow actually is?Other than that i cant wait to see this.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Wed Dec 18, 2013 5:40 pm

very cool, follow edges would be awesome ;]
B
39
S
8
G
3
Posts: 440
Reputation: 6,903

Post » Thu Feb 06, 2014 9:46 pm

I need to clean these up when I Can, but here is the effect, there are a couple versions in the zip file, some work better than others. This is a WIP at this point, and looking for help :)

Big ups to Ed who made it.

https://dl.dropboxusercontent.com/u/122492/Downloads.7z
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Next

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests