Hi,

I've found my fix, maybe it'll help you if you haven't already solved it:

Given two osgWidget::Windows, and wanting to add one as child to the other (in 
OSG 2.6.0), here's what I did:

    osgWidget::Window * topWindow ... (box, canvas, etc)
    topWindow->getBackground()->setColor(0,1,0,0.2);

    osgWidget::Window * subWindow ... (box, canvas, etc)
    subWindow->getBackground()->setColor(1,0,0,0.2);

    osgWidget::Window::EmbeddedWindow * embedded = subWindow->embed();
    embedded->setColor(0,0,0,0); //Gets rid of the opaque white fill
    topWindow->addWidget(embedded);

Making the embeddedWindow transparent allowed the subWindow to display 
properly, as well as its parent. Now I can see the windows' background colors 
with proper alpha.

... 

Thank you!

Cheers,
Patrick

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





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

Reply via email to