[osg-users] depth buffer -> real pixel z - depth

Jason Daly jdaly at ist.ucf.edu
Tue Sep 18 17:56:23 PDT 2007


zarrandreas wrote:
> Hi,
>
> I render depth buffer to the image, but values I have there are between
> [0.0, 1.0].
>
> How can I get real z-depth?
>   

This page explains a simple conversion pretty well:

http://www.cs.unc.edu/~hoff/techrep/openglz.html


--"J"




More information about the osg-users mailing list