Lighting characters

Blitz3D Forums/Blitz3D Programming/Lighting characters

Clique(Posted 2004) [#1]
How do i light an entity based on a lightmap? i.e if its in a shadow then it appears darker.

(i tried using a line pick to get the vertex below an entity and then getting the U.V co-ordinates of the lightmap but i cant get it to work properly)


Rob Farley(Posted 2004) [#2]
In the code archives is a find-the-colour-of-the-lightmap-under-a-specific-point snippet... I think my Fredborg... but I could be wrong... You'll have to have a route around.


TartanTangerine (was Indiepath)(Posted 2004) [#3]
That code is definately in the Archives, maybe under PickedU() or PickedV()


Clique(Posted 2004) [#4]
Found it, thanx guys it should do what i need.

here's the link for anyone else that needs it:
http://www.blitzbasic.com/codearcs/codearcs.php?code=515