Shadowcaster

For questions about using Classic.

Post » Mon Dec 29, 2008 10:52 pm

I am trying get a Nox style view. I am using shadowcaster behavior for the wall. The Problem is that the shadows are not infinites. I have increased the shadow depth parameter, but when the character is near a wall border, it cast wall's border too. So... is posible to get a infinite shadow effect?
Can I smooth or antialias the shadows?
Thanks.
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Mon Dec 29, 2008 11:07 pm

You can't make infinite shadows with it - you just have to use a high shadow depth. There's no smoothing for shadows yet, but you could try putting the shadows on their own layer, and giving the layer a Soften effect, or something.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Tue Dec 30, 2008 12:09 pm

Can I assign the shadows to a layer? I have tried to keep the shadow caster objects in another layer before, but applying a blur effetc to the layer, only blurs the objects and shadowns remains the same.
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Tue Dec 30, 2008 3:28 pm

The 'Light' object is the object which actually draws the shadows. That's the object you need to move to another layer. The 'Shadowcaster' behavior is simply used to mark an object as casting a shadow, like a property or attribute.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Wed Dec 31, 2008 1:49 am

ashley? will there be custom shadow masks anytime soon?
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed Dec 31, 2008 7:13 am

Speaking of custom shadow masks, I decided to have a go at doing my own custom dynamic shadows.

http://www.mediafire.com/download.php?mrm2o5ztmkj

Was fairly straight forward to get custom masking using image points. Not sure how feasible that would be to implement in Construct's built-in shadow casting though.
B
2
S
2
G
5
Posts: 108
Reputation: 1,866

Post » Wed Dec 31, 2008 9:44 am

Thanks Ashley, it works fine now.
Hey Glamthaus, really nice area shadow effect!!
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Wed Dec 31, 2008 4:47 pm

Very nice, man - how'd you do the penumbras?

On second thought, don't bother explaining. I doubt I'd understand.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Wed Dec 31, 2008 6:29 pm

cool, but if it were to be implemented it would be awesome if it used something similar to the custom collision mask for physics.
does that use events? if so plz post a cap
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Jan 04, 2009 8:44 am

I think that from now on whenever we want someone to post a .cap file ... we should just say "bust a cap"
:P
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests