Output binary shadow map with openGL

Good morning all,

Here's my issue: I'm looking to detect shadow in a 2D picture. It so happens that I have a three-dimensional object of the scene (obtained through stereo method) and I'm trying to assess if shadow mapping is a sensible method to find the shadow in the picture. For this I'm trying to use openGL as I think it's one of the most optimized solution out there. My objective is to output a 2D binary or grayscale image corresponding to the shadow map from the camera point of view. I have everything I need, I can render the scene in 3D without issues but I do not know where to get the shadow map from and how to output it as a binary mask.

If you have any input, I would greatly appreciate it,
Cheers,
Topic archived. No new replies allowed.