Hi again,

I appologize in advance for asking stupid questions;)

By changing the line 
cam->setRenderOrder(osg::Camera::PRE_RENDER);
to
cam->setRenderOrder(osg::Camera::POST_RENDER);
everything works as expected (src in my previous post).

I have the following questions:

1: Is this correct behaviour? Does a camera have to be POST_RENDER for buffer 
read operations to take place in the final draw callback without errors. I was 
getting the correct results before, eventhough an error was thrown...

2: Is there any way I can get the value (a texel from a GPU resident texture) 
in the update traversal and in the same frame as I request it? The way I do it 
now I am always one frame behind, since the value is requested in the update 
traversal and fetched in the draw traversal.

Thanks!

Martin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29096#29096





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to