How do I draw the line of sight behaviour cone?

Get help using Construct 2

Post » Tue Apr 22, 2014 9:08 pm

@Ragevortex That would be awesome! However the line itself is a tiled background, same with the "Eraser" object that gets the trail effect to work, so unless I apply a shader effect to both it'll be difficult.

@eli0s I think the remaining trail issue has to do with the opacity of the eraser value. I've gotten better results setting it to 10 instead of 1.
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Tue Apr 22, 2014 11:16 pm

The thing is that the opacity of the eraser affects the time of the fade out. The greater the value the fastest it fades but with better results.

Ideally this shouldn't happen, even with 0.01 opacity, eventually it should have fade out completely.

I posted this as a question to R0J0hound in the Canvas Plugin topic, so hopefully he will confirm it and give some advice.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Apr 23, 2014 8:02 am

Maybe it just takes a while for the trail to fade completely.
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Wed Apr 23, 2014 1:05 pm

Well, that doesn't seem to be the case. I am not sure that I get what cause the problem, but R0J0hound provided a solution.

https://www.scirra.com/forum/plugin-canvas_t64239?start=290

Just set the Blending of the eraser to Additive instead of Destination Out.

Here are side to side comparisons: http://www.eli0s.com/Tests/CanvasTests/CanvasAdditiveBlend.capx
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Apr 23, 2014 1:08 pm

@eli0s I'll try that when I get back home. :)
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Wed Apr 23, 2014 5:07 pm

@eli0s I noticed a problem with the additive method. It makes the canvas area fade to whatever the colour of the eraser is. That's not good if I'm using a background of any kind.
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Wed Apr 23, 2014 10:10 pm

@eli0s also the trail only fully works on white. :/
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Wed Apr 23, 2014 11:54 pm

Damn, you are right and I can't find any way around it...
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artcadev, ignaciosimo and 29 guests