Towel mesh 'projection'

Blitz3D Forums/Blitz3D Programming/Towel mesh 'projection'

poopla(Posted 2003) [#1]
I am interrested in doing some lite to intermediatly powerful(yet hopefully fast) lighting systems. I imagine my best bet is towel mesh's. How do ya go about projecting a towel mesh onto a wall for example. I know it would involve line picks and moving vertices to match the nearest point behind the vertex in the direction it is being projected.

Something that has me stumped is an instance where you might have a pillar, then a wall behind it. The towel mesh would then have to be "fitted" to the pillar and then onto the wall behind it, or am I off my rocker? I'm sure SSwift could help, but I won't twist his arm for trade secrets :). Thanks for any help.


Marcelo(Posted 2003) [#2]
This towel method is workaroundish code, a more correct way is to find the poly's which the shadow lies and render it again with the shadow texture applied (the UV's also need to be modified)


poopla(Posted 2003) [#3]
Yeah I know but that sounds a large bit above my head atm. Ill have to see.