Dynamic shadow casting (0.95)

Post your own tutorials, guides and demos.

Post » Mon May 19, 2008 1:15 am

Quick demo of the Light object casting shadows off objects with the Shadow Caster behavior.
You'll need the Light.csx hotfix, because I stuffed up the release one :oops: (it should prompt to update on starting Construct).

Uses pixel shader 2.0.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon May 19, 2008 9:38 am

That is so awesome.
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Mon May 19, 2008 9:47 am

I can almost feel an update to ghost shooter with walls and shadows ;)

NOT IF I GET THERE FIRST!! MWHAHA
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Mon May 19, 2008 3:51 pm

awww i'm on a computer without pixel shader 2.0 right now so i can't run this =(
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Mon May 19, 2008 5:27 pm

Very cool effect! Would be pretty nice in some sort of horror game.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Tue May 20, 2008 11:29 am

It's nice indeed.

Would be even nicer with control over the alpha of the shadows :shock:
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Tue May 20, 2008 2:55 pm

In Common properties of the Light object, the opacity is the opacity of the shadows drawn.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue May 20, 2008 4:59 pm

Yay Ashley ahead of things again ;)

Edit: I see I missed it because I was looking for a sprite with a behavior. >.<
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Wed May 21, 2008 2:35 am

Dammit! I'm going to buy a new graphics card as soon as i can. i really need ps2! Could someone create a non-ps version in the meantime?
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Wed May 21, 2008 11:29 am

[quote="Attan":37kajlb3]Dammit! I'm going to buy a new graphics card as soon as i can. i really need ps2! Could someone create a non-ps version in the meantime?[/quote:37kajlb3]
Software rendering?? Dude no way it will lag as hell, thats why they invented Pixel Shaders and Vertex Shaders.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests