douglas125's picture

Automatic shadow mapping in C#

Hi all. This is my first of many posts I hope.

So, I've been trying to write an automatic shadow mapper in OpenTK simple to use: just initiate a new stance of GLShadow and call

GLShadow(DrawFunc)

where DrawFunc draws your scene with shadows. I am getting some weird results though, and I can't figure what's going on. I'd appreciate some help and feel free to incorporate the function in some OpenTK.Utils or anything like that.

Later on, I intend to use OpenCL to process the silhouette and produce better results, which I'm also going to share here.

The source project is here:

http://rapidshare.com/files/363370811/GLSL_Teste_v0.22.rar.html

Any help is much appreciated.

Inline Images
Weird shadow map result