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


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:

Any help is much appreciated.

Inline Images
Weird shadow map result