Deck the halls with bells and holly
Tis the season to be jolly
etc. etc.
Well as its festive season I thought I would put together a snippet. I'm attaching a lens flare routine for DB Pro. For the newcomers and beginning coders I have also included extensive commentary on how it works and how you can modify the product. I'll also post it into the codebase.
I'd like to volunteer this as perhaps being the first ever snippet exclusively written and developed in RobK's wonderful Blue IDE.
Just two quibbles on it. First, you'll see that it doesn't use DB Pro's 3d maths commands. I'll post an updated version in the next few days that does. Secondly, it doesn't turn off if the Sun objkect is occluded. I'll post an update for this in a few days as well.
Merry Christmas to you all ... and I expect to see a lot more lens flares in your games!!
Philip
**EDIT: Please note that before you use the code attached in the source box you need to replace some functions in it with the replacement functions contained in my subsequent post below. Thank you**
What do you mean, bears aren't supposed to wear hats and a tie? P1.3ghz / 384 megs / GeForce MX 5200 128meg / WinXP home