ShadowCasting la Whiteclaws

Show us your completed creations made in Construct 2

Post » Tue Aug 27, 2013 6:28 pm

Too bad , Rogo bet me again , all I can do now is release my capx to the public ^^

Dynamic lighting
{Right Click} Drag N' Drop/Create new lightsources
{Left Click } Delete lightsources
Whiteclaws2013-08-27 18:28:58
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Tue Aug 27, 2013 8:12 pm

hey, if i knew i was going to start a torrent of shadow .capx's i would have gotten round to posting my .capx sooner!.. but it's cool looking at all the different methods.

no colours though :p step it up
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Aug 27, 2013 9:25 pm

@keepee ,

Sorry , but rojo got me before I could even start working on the colors :(

Is this the method you used too ?
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Tue Aug 27, 2013 9:47 pm

Perhaps you should implement a method that doesn't rely on image points.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Tue Aug 27, 2013 9:57 pm

@Whiteclaws.. well we all draw a quad for each pair of corners, that is the same as in rojos original .capx a long time ago. The methods used for multiple sources+additive lighting are different.

@newt, that would be cool, but I can't think of any reasonable way of doing it
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Aug 27, 2013 10:14 pm

Maybe you could take a look at different collision detections methods like:
https://github.com/olsn/Collision-Detection-for-EaselJS/blob/master/src/ndgmr.Collision.js
B
33
S
6
G
4
Posts: 44
Reputation: 5,066

Post » Tue Aug 27, 2013 10:23 pm

@Donan

Maybe Rojo or Keepee , but I'm no coder , so ...

@Newt

Or ,

Ask @Ashley to give us access to the positions of the collision boxes
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Tue Aug 27, 2013 10:49 pm

Well Yanns polygon plug would give you that, but the fact is you don't need the collision you just need the point, and that's as easy as the math that gets you the line.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Tue Aug 27, 2013 10:58 pm

@newt ,

I thought of that too , but I guess it's more tedious to set up than the imagepoints
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Previous

Return to Completed Creations

Who is online

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