Dynamic Shadows "engine" for C2

Show us your completed creations made in Construct 2

Post » Fri May 03, 2013 6:07 pm

Hi everyone,
I did some shadow casting tests. I don't know if there's better ways to do this with some plugins.



Drag lights and objects around with your mouse. Add lamps with mouse middle, delete with mouse right and when you are ready to calculate the shadows, hit enter and wait until it's done. To reset everything hit spacebar.

In this version light sources are casting light. Try to create walls to see how it works.
LightCasting

This one is using opposite method and is a bit heavier to calculate.
ShadowCasting

This one is casting realtime dynamic shadows. I made it really light and the cool thing is that it also works without WebGL. It should run around 60FPS.
DynamicShadowCasting

This one is a bit experimental Ambien occlusion for 2D.
AmbienOcclusion

Let me know what you think...nemo2013-05-04 13:40:31
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Fri May 03, 2013 6:12 pm

Interesting! /just need realtime shadows :)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Fri May 03, 2013 6:58 pm

@AnD4D
Thanks for the idea.
DynamicShadowCasting

This one is casting realtime dynamic shadows. I made it really light and the cool thing is that it also works without WebGL. It should run around 60FPS.nemo2013-05-03 20:15:14
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Fri May 03, 2013 9:13 pm

What on Earth!!!? That's brilliant! How did you do that? Is it a lot of events?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Fri May 03, 2013 9:57 pm

@AnD4D
It's just 7 events.nemo2013-05-03 22:04:28
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Fri May 03, 2013 10:15 pm

Well it's a job well done indeed! It should also work on mobile, I bet!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Fri May 03, 2013 10:51 pm

The dynamic shadow casting works very nicely on my ipad3. Gets between 20-30 fps, but its really nice to see what can be achieved without webgl. Very nicely done!
B
12
S
3
G
1
Posts: 235
Reputation: 2,053

Post » Sat May 04, 2013 1:02 am

@nemo - that's pretty cool. I really liked the dynamic demo.
B
32
S
7
G
8
Posts: 312
Reputation: 8,467

Post » Sat May 04, 2013 11:10 am

This looks really nice!
B
3
S
1
G
4
Posts: 42
Reputation: 1,609

Post » Sat May 04, 2013 1:21 pm

This is really cool. I've just posted my experiments in lighting with C2 here: http://www.scirra.com/FORUM/topic67369.html. Apologies if that just shows the URL and not a link you can click, I have BBcodes enabled but it doesn't seem to be working for me (no idea what I'm doing wrong as it previews perfectly).

I'm very impressed that you're doing the effect in just 7 events, I'm obviously doing it the hard way as mine are a lot more than that. Good work
B
2
Posts: 7
Reputation: 164

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest