Code archives/3D Graphics - Effects/Lens Flare effect

This code has been declared by its author to be Public Domain code.

Download source code

Lens Flare effect by markrosten2001
Example Blitz 3d program using lens flares.

4 graphical types of lens flares are used over 7 seperate lens flare effects.

The example includes a sun, a planet, and a rotating cube to show what happens when the sun is hidden from view.

The camera can be moved around to show the distances between lens effects.

The code is fully commented so hopefully you'll be able to understand what is going on ;)
Direct links to the files are here:

(exe and source)
http://www.planetflibble.com/blitz/lens/lensexe.zip

(source including graphics)
http://www.planetflibble.com/blitz/lens/lenssrc.zip



Visit my little here page to view a screenshot and the lens flare images I have used.

http://www.planetflibble.com/blitz/lens


Regards,
Mark Rosten

Comments

Rook Zimbabwe2004
I have been wondering how to do this... Very Cool... Can't wait to read the code!


Code Archives Forum