just got shadow effect working... what a pain that was...

the shadow follows the contours of the terrain and you only see a shadow when the view is within a certain range, and it starts to appear only when the sub is a certain height above the terrain (it's expensive resource wise, so these help keep shadowing objects to a minmum)...
also, the closer you get to the terrain, the darker the shadow gets... kinda neat :) i'm basically satisfied with it, though i've gotta redo the shadow image and get rid of the white border surrounding the mask...
the implementation is based on the 'Flexible Towel Shadows' code contributions in the archives by Rob Cummings...
thx also to jfk and Liberator for their quick and generous advice and help on the forums, and to Rossc and jfk (again) for the code library stuff for masking out other colors besides 0,0,0...
--Mike

the shadow follows the contours of the terrain and you only see a shadow when the view is within a certain range, and it starts to appear only when the sub is a certain height above the terrain (it's expensive resource wise, so these help keep shadowing objects to a minmum)...
also, the closer you get to the terrain, the darker the shadow gets... kinda neat :) i'm basically satisfied with it, though i've gotta redo the shadow image and get rid of the white border surrounding the mask...
the implementation is based on the 'Flexible Towel Shadows' code contributions in the archives by Rob Cummings...
thx also to jfk and Liberator for their quick and generous advice and help on the forums, and to Rossc and jfk (again) for the code library stuff for masking out other colors besides 0,0,0...
--Mike