Realtime Stencil Shadow Effect
Blitz3D Forums/Blitz3D Programming/Realtime Stencil Shadow Effect
| ||
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 |
| ||
Pretty neat! :) |
| ||
Yeah! and nice Anti-Halo tag too.! |
| ||
BlackD - Good idead but aren't your shadows facing the wrong direction from the lightsource? |
| ||
Only problem is that they only render correctly from the X axis. Try shifting it along Z and it'll kill itself. |
| ||
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 |