Realtime Stencil Shadow Effect

Blitz3D Forums/Blitz3D Programming/Realtime Stencil Shadow Effect

BlackD(Posted 2004) [#1]
Totally faked shadow effect. I was working on a routine for a demo to test some routines and it didn't work out - but still looks coolish. ;) LEFT and RIGHT arrows move the "light".



+BlackD

ps. Yes, I know your projectors are better halo.. but I suck at 3D. :P


Clyde(Posted 2004) [#2]
Pretty neat! :)


Damien Sturdy(Posted 2004) [#3]
Yeah! and nice Anti-Halo tag too.!


Stevie G(Posted 2004) [#4]
BlackD - Good idead but aren't your shadows facing the wrong direction from the lightsource?


N(Posted 2004) [#5]
Only problem is that they only render correctly from the X axis. Try shifting it along Z and it'll kill itself.


BlackD(Posted 2004) [#6]
Like I said, it's faked shadow code that doesn't work. :)

And no Stevie G.. unless ur vid card is doing something strange(?) then the shadows will be on the opposite side of the object from the light, which is correct. If you're getting the shadow on the same side as the light source, then maybe ur vid card isn't rotating meshes correctly? Try commenting out this line If EntityX(light) > 0 Then TurnEntity camera2,0,0,-90 Else TurnEntity camera2,0,0,90 and see if it makes a difference.

+BlackD