Spotlight effect

Blitz3D Forums/Blitz3D Programming/Spotlight effect

Bankie(Posted 2008) [#1]
I'm 75% through creating a remake of The Great Escape, and those of you who have played the original will know that at night-time, there was a searchlight which scanned across the outside area. I have thought of a couple of ways to do this, but they're fairly lame, so have went searching for alternatives. I found this, which on first glance is exactly what is needed:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1000

However, it seems that the effect will only work on meshes. The problem is that my scenes are made of many MD2 entities, and mesh operations do not work on these.

So, can anyone tell me if the above routine is really of no use to me? If this is the case, can anyone suggest an alternative method of creating some kind of spotlight effect? It doesn't have to be as fancy-schmancy as the one above - just something workable.


Beaker(Posted 2008) [#2]
I did something a while ago that looked similar to the spotlight in Zelda Wind Waker. Quite toony. It did require a couple of fullscreen renders per frame tho:
http://beaker.powweb.com/toonlights.zip
..very old code and quite messy.


Bankie(Posted 2008) [#3]
Thanks! This looks promising for what I'm trying to do. Will go through this later to try to understand it fully and see if I can do something similar. I totally appreciate you letting me view a bit of your work, particularly since you consider it messy.