Classification:  UNCLASSIFIED 
Caveats: NONE

Paul, 'gluUnProject' is a world space inverse projection
If I understand right, the depth buffer mapping is vendor specific and
is traditionally a logarithmic mapping. 
I'm not aware of a generic algorithm to do the inverse projection for
the depth buffer.
Try the 'Real-Time Rendering' text and/or their website:
http://www.realtimerendering.com/
Bob


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Martz
Sent: Thursday, November 08, 2007 8:12 AM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] Depth Buffer to Distance Conversion

Download the GLU source code from opengl.org and look at how
gluUnProject() works.
   -Paul
 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
        Sent: Thursday, November 08, 2007 6:16 AM
        To: [email protected]
        Subject: [osg-users] Depth Buffer to Distance Conversion
        
        

        Hi, 
        
        Can someone provide me with the algorithm to convert the value
of the depth buffer pixels to ranges? 
        Thanks 
        
        This is an e-mail from General Dynamics Land Systems. It is for
the intended recipient only and may contain confidential and privileged
information. No one else may read, print, store, copy, forward or act in
reliance on it or its attachments. If you are not the intended
recipient, please return this message to the sender and delete the
message and any attachments from your computer. Your cooperation is
appreciated. 

Classification:  UNCLASSIFIED 
Caveats: NONE

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to