Skip to main content
gamedev.net
🔒 Locked

Shadows through a solid object

Started by SoaringTortoise Jul 12, 2004 at 2:00 PM 2 replies 1.1k views
Original Post
SoaringTortoise
SoaringTortoise
Umm, is there a really cheap way to stop a shadow volume from projecting through a solid object? I've got a bridge over a river, and the shadow shows up on the bridge as well as below it.
Always prey on the weak, the timid and the stupid. Otherwise you'll just get your butt kicked
For a tortoise, this is extremely hard to do, but when you get it right... the expression on their faces ...
tomek_zielinski
tomek_zielinski
I think that if you know your shadow-receivers you can discard other objects in your shadow drawing, or draw other objects with writing 0 to stencil buffer
www.tmreality.com
SoaringTortoise
SoaringTortoise
Hmm, that almost sense except that clipping the shadow volume by all the other receivers is quite expensive (the receivers can be very complex geometry). I suppose the trick would be to resolve the other receivers into simple clipping planes and snaffle the volume that way.... but that's also far too expensive surely?

[edit: receivers, not casters]
Always prey on the weak, the timid and the stupid. Otherwise you'll just get your butt kicked
For a tortoise, this is extremely hard to do, but when you get it right... the expression on their faces ...
JohnBolton
JohnBolton
The bridge needs to cast a shadow too. If you don't want the bridge to cast a shadow, then perhaps you could cap the shadow volume somewhere between the bridge and the river.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.