Shadow Caster Question

For questions about using Classic.

Post » Wed Aug 10, 2011 6:11 pm

Is there any way to create shadows like this with the shadow caster?.http://krypton.codeplex.com/
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Aug 10, 2011 6:52 pm

Is this what you mean?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Aug 10, 2011 8:12 pm

Not exactly.The light deforms around the blocks as you move the lightsphere around.It's easy enough to do this with Xna ,But i have no clue on how to create soft shadows within Construct's shadow caster.Maybe it's got something to do with the z axis.Look at the videos on that link i gave previously then you will see what i mean.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Aug 10, 2011 8:47 pm

I've looked through both videos and the only thing I see in those, that isn't in that example, is the shadows covering other objects.

Unless you mean the smooth edges of the shadows, I'm not sure if this can be controlled from the shadow caster behavior/light plugin.Jayjay2011-08-10 20:49:31
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Aug 10, 2011 8:56 pm

Hey i got it right I just had to give the light object a blur H and blur V effect to get the soft shadow.

here's the cap.I made it with Construct classic R 1.2



SoftShadowEffect
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Aug 10, 2011 10:23 pm

Oh sweet, glad to see it works after all. Thanks for sharing DravenX =D
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Thu Aug 11, 2011 3:16 am

Thanks for this. The only bad thing about the blur thing is that it makes the edges of objects glow (in the shadows).

Is there a way to tell if an object is in the light? For instance, I may want objects invisible unless you can see them.alspal2011-08-11 03:19:37
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Thu Aug 11, 2011 5:48 am

[QUOTE=alspal]Is there a way to tell if an object is in the light? For instance, I may want objects invisible unless you can see them.[/QUOTE]

Set the collision detection on the "light" sprite to bounding box (or better yet, make a tight circular mask) and test if it overlaps with the objects? Seems like that would work.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Aug 11, 2011 8:39 am

You can already test collisions with the light object, but it still detects them when they're in shadow.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests