Sign in to follow this  

dispalying depth buffer as an image

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

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