Rémi Arnaud (remi++at++remi.engr.sgi.com)
Thu, 25 Sep 1997 13:30:39 -0700 (PDT)
glReadPixels(x,y,1,1,GL_DEPTH_COMPONENT,GL_FLOAT,&f);
z = 2*far*near / (far+near - (far - near) * (2 * f -1.));
note that the ReadPixel function accuracy is 16bits linear integer,
even if the Zbuffer is 23bits compressed.
>
> Alternatively, is there a Performer function I can call to calculate it
> for me?
_ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:00 PDT