2d tile lighting

BlitzMax Forums/BlitzMax Programming/2d tile lighting

Diablo(Posted 2005) [#1]
Ok so I've been working on this code of a while with a mate of mine and got this far.



It works fine its just i wanted to know if there was a better of doing the lighting because its going to get pretty slow with 4+ light points.

also i wanted to know if there is a better way that i can blend the colours together (Without using alpha blend, too slow).

thx for any help.


K@li(Posted 2009) [#2]
cool !


Sanctus(Posted 2009) [#3]
I used images with LIGHTBLEND. It does the trick for me if I use a good image.


Arowx(Posted 2009) [#4]
I found a great article about lighting here! in effect it's about creating a shadow casting system that is very fast.

I've tried it and managed to add 32 lights and get realistic looking shadows but it depends upon the size of the tilemap on screen, and I have not yet done any speed tests!

If your interested in the code I can post?