Hi all

Description:
Inspired by the movie by Sascha on his site http://www.saschawillems.de/ I decided to write my own little forward renderer. This demo does simple pointlights with cube shadowmapping. I didn`t add parallax or normal mapping to keep it simple. I use rgba cubemaps in which I decode the depth value because like Sascha I couldn`t get the depth cubemaps and fbo`s to work properly. This demo has 5 lights of which one is dynamicly updated each frame. Each extra light requires one extra pass. The demo can probebly be optimised by handeling more then one light in the shader and clipping the drawing of a light with a scissor test.

Controls:
WASD+Mouse : Movement
F1 : Wireframe
F2 : Lighting only
F3 : Show dynamic updated cubemap
F4 : Switch between FBO or glCopyTexSubImage2D for the cubemap. Note that glCopyTexSubImage2D wont work on nvidia for some reason. Not sure why but the dynamic shadow doesnt get copied anymore.

Inifile:
In the settings.ini you can some properties.
1024 = width
768 = height
0 = fullscreen
1 = 1 = Start with FBO and 0 is start with glCopyTexSubImage2D. When using 0 on nvidia you dont get shadows as explained by F4
512 = Size of the shadowmap. When using 0 in the above make sure this is smaller then the width and height.

And here is a little movie:
http://www.youtube.com/watch?v=fts9RFMUE8Y

And of course the download link:
http://www.genesisdevice.net/downloa...drendering.zip

Source like always is under LGPL.

Greetz Luuk