Ultra fast shadow mapper
Blitz3D Forums/Blitz3D Programming/Ultra fast shadow mapper
| ||
Something I was playing with today... http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=859 Can you make it better for me :) |
| ||
terrain01.bmp is not supplied. What size should its replacement be? |
| ||
whatever size you want, i normally work with 256x256 |
| ||
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. |
| ||
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 :) |
| ||
Hey It now casts long shadows..... |