[Effect] : 2D Dynamic Lighting

Share your Construct 2 effect files

Post » Thu Oct 25, 2012 1:36 pm

@Joannesalfa : I was discussing with him via email. As soon as I can, I'll add the shadows, using a heightmap.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Oct 25, 2012 6:33 pm

It would be awesome than any of 3D games!
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Thu Oct 25, 2012 8:07 pm

Thank you Pode, this and the drop shadow effects will be very useful!
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Thu Oct 25, 2012 8:11 pm

I found this article, maybe youre interested in it too:
http://forums.tigsource.com/index.php?topic=8803.0
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Sat Oct 27, 2012 6:50 pm

0.o


nice
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Wed Nov 07, 2012 10:25 pm

Decided to try this plugin out, so I grabbed an X sprite and made a normal map for it.

Arrow Keys: move X
Click and drag the yellow swuare to move the lightsource.
https://dl.dropbox.com/u/22615804/x-light-test/index.html

I'm now wondering how to go about working with more than one lightsource.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Wed Nov 14, 2012 8:28 pm

This is really fantastic and deserves more attention/notice. Coming from 3D game making, I'm very excited to see this. One thing I have hoped with the addition of shader effects is the ability to do "2.5D" games where everything other than particle effects would have normal maps. I've tried this with some high def realistic textures and normal maps made in Filter Forge and it looks really good.

I'm assuming if you added all your objects to a family, put dynamic lighting effect on that family, you could achieve this without having to set the vectors for each object?

It would be a cool enough effect to just have the light follow the camera while placing the center at the edge of the screen in whatever direction/angle the user was moving. Additional lights could be added by creating additional "center" objects that would really function as the lights' directionality. However, I'm not sure how you would account for multiple light sources on a single object. Some interpolation between light sources would have to impact the effect vectors.

Is there a way to add a "falloff" where if an object or part of an object is a certain distance from a light source it would grow progressively dark? Right now it appears that the light projects out into infinity in whatever direction it is pointing. Though I am just making a lot of guesses based on 30 minute of playing around.

Anyway, this is a huge step in the right direction!
B
9
S
3
G
4
Posts: 80
Reputation: 3,268

Post » Thu Nov 15, 2012 10:47 am

@inkBot @ srealist : I'm planning to add the "shadow" part when I have the time, and combine it with multiple light sources.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Dec 13, 2012 10:22 pm

Seems incredible!

I can't wait to see more features. Keep up the great work!
B
50
S
16
G
7
Posts: 59
Reputation: 6,365

Post » Tue Dec 18, 2012 4:29 pm

the only thing painful to this great work. Is that it's not on mobile :( boo no webgl on mobile ;(
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

PreviousNext

Return to Effects

Who is online

Users browsing this forum: No registered users and 1 guest