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

Robert Osfield robert.osfield at gmail.com
Mon Sep 17 01:28:56 PDT 2007

On 9/16/07, zarrandreas <zarrandreas at web.de> 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?

You'll need to use the inverse of the projection matrix.

More information about the osg-users mailing list