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

zarrandreas zarrandreas at web.de
Wed Sep 19 01:00:34 PDT 2007


Thanks a lot!
This is what I need. :-) 

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Jason Daly
Sent: Wednesday, September 19, 2007 2:56 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] depth buffer -> real pixel z - depth

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"

_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list