Jump to content
  • Advertisement
Sign in to follow this  
Jernej.L

shadow mapping

This topic is 4269 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!