Sign in to follow this  
Delfi

shadow mapping

Recommended Posts

Has anybody any idea, how can i get the image back, which is the shadow map for gl_arb_shadow (GL_DEPTH_TEXTURE_MODE_ARB & GL_COMPARE_R_TO_TEXTURE_ARB)? I tried glGetTexImage, but all i get back is null data, is there some kind of undocumented magic involved with this?

Share this post


Link to post
Share on other sites
Quote:
Original post by Delfi
With GL_DEPTH_COMPONENT i get exactly same result, null data, and glgeterror is GL_INVALID_ENUM.
Find out what's causing that error and fix it. GLIntercept is a great help for this.

Share this post


Link to post
Share on other sites
What are you doing with the data? If you are trying to dump it to a file, the issue maybe with floating point. The data returned I think is 0 or 1 or 0-1. Either way if you dump this to a unsigned char type it will be 0 due to rounding, casting. Not sure if this is the case or not....

Share this post


Link to post
Share on other sites
I dump it to file, i tried passing any constant that worked, and always get back zero data, not even floating point, it is just completely zeroed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this