By Stefbuet
![Razz :P](./images/smilies/icon_razz.gif)
Hey,
I've made this lighting manager for my game. As I've received good help from Irrlicht forums, I decided to share it here!
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
So, basically this allow you to use point lights , or spot lights with nice effects really easilly in your application because you won't have to touch anything about shaders or that kind of thing.
A nice thing too is the ability to switch with a simple line of code from a per vertex light to per pixel light. You can also change the quality of lights, shadows direcly. Moreover, this system is a good base to do some post processing effects like bloom or motion blur.
What you can do:
-Use point/spot lights
-Normal & Specular mapping
-Switch from per pixel to per vertex shading
-Attenuation of lighting
-Use soft shadows
-Enable or not shadow casting from lights
-add/remove lights/lighted nodes very easilly
-a lot more ....
I wrapped XEffect into this system to be able to use soft shadow mapping. Don't try to use your XEffect built, it won't work because I've done a lot of changes to be able to change lighting rendering, remove lights, and a lot of things, so you should use my version of XEffect instead.
Here is a video (without shadows):
http://www.youtube.com/watch?v=RO3pRcymG-w
Here is a screen shot (exemple from the archive)
shadows + 3 point lights red/green/blue with normal & specular mapping:
![Image](http://img143.imageshack.us/img143/2452/lightandshadows.png)
And here is the download links.
megauplaod : http://www.megaupload.com/?d=6TN516YB
easyshare : http://www.easy-share.com/1911339959/lighting manager irrlicht.rar
3 exe provided with 3 shadow casts, 1 shadow cast, and no shadow cast.
The licence is Zlib like Irrlicht. I've put it into the archive.
I hope you will like my lighting system.
If you find any bug, or have any comments/reviews, make sure to post here
![Smile :)](./images/smilies/icon_smile.gif)
Stef.