Dynamic DX Lighting

Miscellaneous Forums/Blitz Showcase/Dynamic DX Lighting

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I was just having a play about with lights.

I created a Maplet level and recorded where the lights are using Droplet. Then I wrote a bit of code to see where the lights are (in relation to the player) pick the one closest to the player and put a DX light there of the right colour.

It works pretty well apart from the fact that you can be lit by a light on the other side of a wall... Bah details!

[img "http://mysite.freeserve.com/mentalillusion/temp/b001.jpg"]
[img "http://mysite.freeserve.com/mentalillusion/temp/b002.jpg"]
[img "http://mysite.freeserve.com/mentalillusion/temp/b003.jpg"]
[img "http://mysite.freeserve.com/mentalillusion/temp/b004.jpg"]