Advertisement Jump to content
Sign in to follow this  
Nasam

dispalying depth buffer as an image

This topic is 3701 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

What I wanted is displaying depth information of the scene as an (bmp or tga ) image. For this after reading depth value for a pixel from the depth buffer, same value is taken as R, G ,B for that pixel and written to the image file. This is giving correct result(grayscale image). For an object( say 3D teapot or 3D text) it is obvious that different pixels are at different depths if that object is slightly tilted. But it is not showing depth variation in this case( not showing different gray scale levels). Why this happens? And how to correct this error? Thanks in advance namitha

Share this post


Link to post
Share on other sites
Advertisement

This topic is 3701 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.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!