Hi Glenn,

On 21 February 2013 13:58, Glenn Waldron <[email protected]> wrote:
> Thanks guys. I figured this one out. Here was the issue:
>
> Turns out I fibbed about not sharing data: I assigned a common stateset to
> both cameras prior to configuring each one for RTT.
>
>     osg::StateSet* common = new osg::StateSet();
>     ...
>     cam1->setStateSet(common);
>     cam2->setStateSet(common);
>     ...
>     // do the RTT setup here
>
> Nothing interesting in the common StateSet itself, but I'm guessing that
> osg::Camera under the hood uses that StateSet for some of the FBO attachment
> information, which then ended up being shared.

The FBO attachment "should" be done totally independently from the
Camera's StateSet.  I can't yet think of reason that sharing a
StateSet would cause this problem, so am concerned that there is a bug
lurking somewhere.

Could you modify one of the OSG's osgprerender examples to illustrate
this problem, if we an reproduce the problem then we'll have chance of
finding out what is going on and fix any bug that doesn't reveal
itself.

> I can move that common StateSet up to a parent group and all it well. Thanks
> again for the comments.

Glad to see you've found a workaround, but what you did does still
sounds like it was reasonable.

Did the StateSet apply any of the textures that are being written to?

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

Reply via email to