Casting Shadows in C2

Show us your completed creations made in Construct 2

Post » Tue May 07, 2013 4:50 pm

Nice. Thanks for sharing.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Wed May 08, 2013 10:50 am

Wow, this is pretty cool. I wanted a similar effect for my next game, so I'm going to have to thank you in advance for the share!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Wed May 08, 2013 1:44 pm

Cast shadow plugin? anyone? ;)
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Wed May 08, 2013 2:13 pm

vry nice effect dude :D
and the effect was incredibly realistic
B
123
S
19
G
16
Posts: 487
Reputation: 21,500

Post » Wed May 08, 2013 6:39 pm

Thanks for the comments and feedback everyone.

I've put up the source code for the LightingTest, there are some changes that address some of the criticism. Apologies for the complexity (it isn't a simple approach), maths is not one of my strengths and I had to fumble through it a bit. You can download it from: www.adamduncan.com/LightingTest/source.zip

I've only just discovered that R0J0hound made an example of cast shadows and posted it in the following thread: http://www.scirra.com/forum/dynamic-shadows-now-possible_topic56174.html. I recommend looking at it if you're interested in drawing cast shadows in this way (using the canvas plugin). It turns out R0J0hound does it much better than me and I feel like a bit of an idiot now that I've seen it. What I wanted to achieve was a bit more complex and I'm glad that I've solved the problem on my own though.
B
2
Posts: 7
Reputation: 164

Post » Wed May 08, 2013 9:02 pm

[QUOTE=AdamD] This isn't a shader (that would probably be a more efficient way of doing it), I'm just using some maths and the canvas plugin. I should've mentioned the canvas plugin in the original post as it is brilliant.[/QUOTE]

I think C2 needs a dedicated canvas plugin for the same obvious reasons. ;)
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601

Previous

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 2 guests