[osg-users] "Robust" Update of an osg::Image attached to a osg::camera ?

Robert Osfield robert.osfield at gmail.com
Mon Mar 9 06:00:11 PDT 2009

Hi Erwan,

You don't provide enough information about your setup for us to guess
what might be wrong.  How are you setting up your scene + viewer to
render to the image?  Is your rendering just for the purpose of
generating an osg::Image as output?  How you are testing the results
of the image?  What threading model have you used?

As a general note, can you do the processing in shaders instead on the
CPU?  Avoiding the readback from the GPU to main memory can be a big
save in performance.


On Mon, Mar 9, 2009 at 12:52 PM, Erwan Bigorgne
<erwan.bigorgne at gmail.com> wrote:
> Hello,
> I'm currently using (and learning) osg in order to manage an implicite 3D-
> model in an computer vision task.
> for that purpose, i need to compute a reliable depth map, that i intend to
> update at each step of the algorithm.
> I've almost reach that goal, but sometimes, the generated osg::Image (i.e.
> the depth map) is either corrupt (two geometrical states of the model are
> partially rendered), or just not updated at all.
> osg::Image->dirty() makes things better but not perfect.
> Any Idea about what i should do next or about what  I should care?
> thanks,
> (btw, excuse my poor english)
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list