Hello,
I'm sorry that this isn't an osg-submission, but I'm not sure what the
best fix. Since the applyMaskAction change was made for
Camera::setCameraClearColor, slave cameras no longer inherit the master
camera's clear color when CLEAR_COLOR is part of the inheritance mask.
More accurately, they get the proper clear color the first time
osg::View::updateSlave is called, but not after. The problem is that the
setClearColor() call in that method causes the CLEAR_COLOR bit in the
inheritance mask to be cleared
when DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT is set (the default).

A workaround would be to set the inheritance mask action of the camera
to DO_NOT_MODIFY_INHERITANCE_MASK, but that doesn't seem right; the
code that is implementing the inheritance shouldn't be disabling it. I
suspect that the best fix would be to implement a
setClearColorOverride() method that doesn't perform the
applyMaskAction() call; other camera properties might need the same
treatment.

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

Reply via email to