How do I create a magnificent sun with 'Shadow Light'

Get help using Construct 2

Post » Thu May 22, 2014 6:02 pm

I'm trying to find a workaround for making this new feature behave like a real light.

Like on AS3.

More precisely: I'm trying to set the 'ShadowLight' element to behave like a sun and all the shadowcasters to just block the light (the sunrays).
B
13
S
2
Posts: 27
Reputation: 952

Post » Fri May 23, 2014 1:14 pm

check the examples folder there are 3 to look at if you haven't already.
B
56
S
17
G
5
Posts: 184
Reputation: 8,908

Post » Fri May 23, 2014 6:52 pm

You mean like in this test (see first post) viewtopic.php?f=146&t=106045 ? (Sorry, I can't see anything relevant following your link)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Sun May 25, 2014 4:08 pm

@eli0s Your try is beautiful indeed.
This was the relevant part of the link I provided, a serie of demos with real-time volumetric lighting effects in AS3.

What I'm trying to achieve is similar to yours, I think. Please take a look at my example. It's an early test with some debug features, it lacks of a sun sprite and the sun that will be added is now represented by the position of the mouse. I'm trying to build a setup where shadows are not shown but only sunrays are, if they're not blocked by something (the clouds more importantly and the dragon maybe).

It looks like you put the collision mask in a strange way that it pleases me very much.

These are my collision masks, at the moment.

Image
B
13
S
2
Posts: 27
Reputation: 952

Post » Mon May 26, 2014 12:21 am

@sadNES great art! I love the dragon! I have a nostalgic feeling from my childhood, reminds me a Chinese (I think) animation about a boy and a dragon that was broadcasted very long ago...

What you want to achieve is in essence the exact opposite from what the lighting system does at the moment. Surely if we had masks it would had being quite possible. Perhaps with some blending modes... Let me think about it, try something out. I'll be back (with the T-800 voice).
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Mon May 26, 2014 12:39 am

The Neve Ending Story! =)
http://www.imdb.com/title/tt0088323/
B
24
S
4
G
1
Posts: 177
Reputation: 1,827

Post » Mon May 26, 2014 1:46 am

@henriquesv ahhh, that is an other amazing memory, but it isn't the one I am referring to. That was a traditional animation cartoon. The translation was something like "Chinese stories"... I don't remember :(

I'll search for it now that I made you go thru the trouble searching. :)

-EDIT I've found it! It was titled Chinese stories (fairytale) but now that I listen to the music it's actually Japanese, so the title was probably poorly translated in Greek!

http://www.youtube.com/watch?v=WFaUxRp2rPk#t=93 here is one episode, dubbed in Greek...
Last edited by eli0s on Mon May 26, 2014 2:32 am, edited 1 time in total.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Mon May 26, 2014 2:15 am

@sadNES unfortunately, I can't get the blending modes work the way I want. Essentially, we want the shadow beams to cut thru an other layer that will hold a sun glow. The problem is that the blend modes ignore black/white values (gray-scale masking) and only care for opaque areas. I can't find a way to make the shadow casting layer (using destination out or source atop blend modes) to cut thou an other layer below that will have the Sun and the glows.

I had to resolve in some fake workaround, that use the shadow layer with an overlay effect that cast a darker sky color, and some texture glows/rays to fake the Sunlight.

See the attached capx.

SunRays.capx


I am guessing that this isn't very light on resources and I am not sure if this is the correct way to spawn the ShadowObjects on the Cloud Image points. Feel free to improve upon it :)
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Mon May 26, 2014 3:11 am

Thanks for the SunRays.capx @eli0s! Awesome effect!
B
6
S
1
Posts: 6
Reputation: 471

Post » Sat May 31, 2014 6:49 pm

@eli0s Oooh, thank you very much my friend. I'm giving it a few tries to obtain exactly what I want.

I'm glad I let you swim in the past, it actually is the dragon from Spirited Away, Haku. I gave a look at your website, I can't understand a thing but I love the mood of the animations, that white entity reminds me of the artwork style in Yume Nikki, a little african and mysterious.
B
13
S
2
Posts: 27
Reputation: 952

Next

Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, Rable, TELLES0808 and 2 guests