Hi, To start, I am grabbing the depthBuffer from the video card using the readPixel (0, 0, width, height, GL_DEPTH_COMPONENT, GL_FLOAT) method.
First, I will create a camera that will be positioned above the scene's geometry and point straight down. I'd like to take the data from the depth buffer and transfer it into memory. Next, using the data, I'd like to create a grid and translate all the depths to height above geometry. If I have an osg::Image *depth_buffer, I believe that: depth_buffer->data() takes the depthbuffer from the video card into memory. How can I store all the data into an array, iterate through it, and convert the normalized values into meaningful height values? 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.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

