Any way to apply an outline?

Get help using Construct 2

Post » Thu Nov 01, 2012 11:27 pm

Hey all,

I have a quick question. I've been browsing through the webGL effects, and I don't see any way to create an outline. i.e. if it was applied to a layer, all objects on that layer would have an outline. Ideally, I'd be able to control the thickness, color, and alpha of that outline.

Is there any way to do this or is the effect yet to be written?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Fri Nov 02, 2012 2:45 am

Have you looked at the toon effect? (just making sure)
It doesn't do opacity thickness or colour but I guess it would be a good place to start..
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Fri Nov 02, 2012 10:25 am

I did have a look at that. The fact that it doesn't do opacity thickness or color sort of breaks it for me, however. Also it has that posterization along with it.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sat Nov 03, 2012 11:45 am

Anyone else have any ideas?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sun Nov 04, 2012 7:01 pm

@sqiddster : you can try to have a layer under the current one, with all the Sprite duplicated. On that layer, you need to blur the Sprite, change the color of the blurred result, and enlarge a bit the layer (or the Sprites), to make add that outline.
If it's to slow, you can "snapshot" the game, load that snapshot in a Sprite, and apply that effect to the Sprite.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sun Nov 04, 2012 7:04 pm

@Pode, thanks! Since I use masking for this layer, that won't really work. And anyway, if I was going to go to all that effort, I might as well learn the shader language and do it myself!

I wonder if anyone would be kind enough to do an outline shader. Surely it couldn't be too difficult, and could improve the look of a lot of games.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Mon Nov 05, 2012 3:46 am

B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Mon Nov 05, 2012 11:21 am

Awesome!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests