Fake shadow..

Blitz3D Forums/Blitz3D Programming/Fake shadow..

Naughty Alien(Posted 2006) [#1]
..hi guys..I would like to perform fake shadow on my level geometry, but level geometry is not flat...how to perform this so fake shadow will follow surface of geometry properly??


jfk EO-11110(Posted 2006) [#2]
This shows how to render a shadow silhouette and use it as a texture for a towel mesh that is aligned to the ground.

You may also use a simple blob shadow texture instead, that's easier and much faster.

http://www.blitzbasic.com/codearcs/codearcs.php?code=434


Naughty Alien(Posted 2006) [#3]
..this is interesting..this should work for B3D as well?


jfk EO-11110(Posted 2006) [#4]
If I recall correctly, it's using a linepick for every vertex of the towel mesh. So, yes, should work with B3D meshes too. Just make it pickable. Make sure to seperate the floor from things like trees etc. cause the shadow of the character should not be aligned to the trees tips of course.