Hi Kim,

On Thu, Nov 10, 2011 at 6:21 AM, Kim Bale <[email protected]> wrote:
>
> Is there a way of reusing the FBOs so that I don't need to duplicate them
> all for each eye?
>
> I couldn't seem to find a way of doing that without the previous data
> being overwritten.
>

Which stereo mode are you using?

I run into this problem a lot as well. I believe the reason the previous
data gets overwritten is that osgUtil::SceneView explicitly calls
RenderStage::drawPreRenderStages() on both eyes, before drawing the main
render stage. You might be able to fix this by commenting out these calls
and letting RenderStage::draw() take care of the prerender stages,
depending on which stereo mode you are using.

I believe these explicit calls are necessary for the anaglyphic and
interlace stereo modes, because you wouldn't want the color/stencil mask
affecting the prerender stages. However, for the split and quad buffer
stereo modes, I don't believe these calls are necessary and it should be
safe to comment those lines out.

With a slight modification to SceneView::draw() it should be possible to
get this working with anaglyphics/interlace modes as well. This is
something that's been on my todo list for a while. Now might be a good time
to try and tackle the issue :)

Cheers,
Farshid

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

Reply via email to