Shadow Ray cast

Blitz3D Forums/Blitz3D Programming/Shadow Ray cast

Neochrome(Posted 2004) [#1]
( i think thats the term )

I am playing with the dynamic shadow, and im stumped! i managed to get a realy nice hi-res thing working, problem is, that is a little rigid, meaning the shadow only works in one (light) direction and wont rotate or cast the shdow correctly according to light to source.

any way i can use the hugging mesh with the light calculation as well?

at the moment im using rotate in the roll axis but that only works to a degree, once its on the other side the shaddow appears to be reversed, i know why this is, i just dont know how to work this out!

HELP before they come to take me away


Neochrome(Posted 2004) [#2]
hmm, looks like theres a shadow forum already... it it too looks bleak!


Hujiklo(Posted 2004) [#3]
Could it be because Blitz flips the degrees after 180 to a minus number - i.e. -1, -15 etc ?
Just a wild empty-headed guess.


Neochrome(Posted 2004) [#4]
i did think that, but no, its just the projection its perfectly ok, just need a solution to make the shadow work like a shadow and not worry about using projections