Hello, I have an rtt camera that renders float32 values to an FBO. I use osgCompute to process this FBO and output to the screen without copying anything back to CPU memory. I would like to add a HUD that shows the float32 value at the center of the FBO texture (if there are an odd number of pixels in the x and y direction then use the exact center, if even then round down to the nearest pixel to the center, accuracy isn't too important). If I wanted the entire FBO contents I believe I'd have to create an osg::Image and attach the FBO to that image such that the entire contents of the FBO texture would be copied from GPU to CPU memory every frame. Since I only need the center pixel this seems wasteful, but I can't think of any way to access the contents of the FBO texture without writing the whole thing back to CPU memory. Anyone have any tips on this? I've seen other posts that were related to this but none that had a satisfying solution. Thanks, and if I'm mangling the term inology feel free to set me straight since a lot the terms I just used are relatively new to me.
-Ethan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52076#52076 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

