[osg-users] depth buffer -> real pixel z - depth
zarrandreas at web.de
Mon Sep 17 09:30:50 PDT 2007
Thanks for your answer, but how do you mean this?
Real_depth = inverseProjectionMatrix * [0.0, 0.0, depth, 1.0]
Is that correct?
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Sent: Monday, September 17, 2007 10:29 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] depth buffer -> real pixel z - depth
On 9/16/07, zarrandreas <zarrandreas at web.de> wrote:
> 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.
osg-users mailing list
osg-users at lists.openscenegraph.org
More information about the osg-users