[osg-users] Camera backgroundtransparency and viewport border
pmartz at skew-matrix.com
Sun Apr 24 20:06:07 PDT 2011
On 4/24/2011 2:15 PM, Zuzana Číková wrote:
> I have one main and one slave camera, I would like to make the background of the slave camera semi transparent so I can see the main camera rendering. How is this possible? I have spheres visualized in both cameras and these dont have to be semitransparent, just the background.
Hm. Did you try disabling clear on the slave camera? Set the clear mask to 0, or
set it to clear just the depth buffer.
> Other thing, I wish I could border the viewport of the slave camera, so it would be directly visible that bordered part is the one of slave camera.
Use the same technique as you would for a fullscreen quad or triangle pair, but
use a GL_LINE_STRIP primitive instead.
More information about the osg-users