Hi YangXiao, On 2/4/09 3:22 PM, YangXiao wrote:
z = float ( (depthBuffer->data())[i*4] );
Could it be your cast is wrong? You're only reading every fourth byte and casting that to float, which explains why you're only seeing 0-255.
Try "z = ((float*) depthBuffer->data())[i];" instead. /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org