Hi everyone, I use the osg::Image function readPixels to read depth buffer values like this: ... image->readPixels(x,y,width,height, GL_DEPTH_COMPONENT,GL_FLOAT); GLfloat* depth = image->data(); ... All values in "depth" are between 0.0 and 1.0. How can I get the true value of Z coordinates? Dose OSG have any counterpart of the OpenGL function "gluUnproject"? How can I make it with OSG? Thanks a lot!
Best regards, Lin
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
