Geoeoeo

02-27-2016, 04:44 AM

Hello,

I am currently implementing shadow mapping in OpenGL.

It is working, so that's great. However, for fun, I wanted to visualize my depth buffer.

Now, when I use perspektive projection for the light and use the interpolation algorithm I get a nice depth map.

However, I simply can't get it to work for my standard orthographic projection. The whole scene is just one single color.

I'm assuming I'm missing an interpolation step, like for perspective projection. But I can't seem to figure it out.

Does anybody know what's missing?

Current Depth Maps can be found here: imgur.com/a/bkdPt

(Forum wont accept my images)

Best,

Marc

I am currently implementing shadow mapping in OpenGL.

It is working, so that's great. However, for fun, I wanted to visualize my depth buffer.

Now, when I use perspektive projection for the light and use the interpolation algorithm I get a nice depth map.

However, I simply can't get it to work for my standard orthographic projection. The whole scene is just one single color.

I'm assuming I'm missing an interpolation step, like for perspective projection. But I can't seem to figure it out.

Does anybody know what's missing?

Current Depth Maps can be found here: imgur.com/a/bkdPt

(Forum wont accept my images)

Best,

Marc