Ultra fast shadow mapper

Blitz3D Forums/Blitz3D Programming/Ultra fast shadow mapper

TartanTangerine (was Indiepath)(Posted 2003) [#1]
Something I was playing with today...

http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=859

Can you make it better for me :)


WendellM(Posted 2003) [#2]
terrain01.bmp is not supplied. What size should its replacement be?


TartanTangerine (was Indiepath)(Posted 2003) [#3]
whatever size you want, i normally work with 256x256


Rob Farley(Posted 2003) [#4]
It's quick...

I would suggest that it's not actually doing shadow mapping as nothing is casting a shadow, also, you're not getting variation in brightness dependant on the slope incline/decline.

It's alright as a starting point, but certainly needs more work.

Look up cosine interpolation for when you've got a lightsource hitting it from different directions. It's a good way to find the inbetween points between points.


TartanTangerine (was Indiepath)(Posted 2003) [#5]
Hi Rob (Dr Av),

I must say that I was inspried by your terrain shader, you've obviously got your head around the stuff. I'm only playing at the moment - I might give up and purchase Terrain Shader 2 if I can't get the algorithm working :)


TartanTangerine (was Indiepath)(Posted 2003) [#6]
Hey It now casts long shadows.....