Hi,
I changed the window creation code, but the resulting png still has alpha=1.
Code:
AdapterWidget::AdapterWidget( QWidget * parent, const char * name, const
QGLWidget * shareWidget, WindowFlags f)
:QGLWidget(parent, shareWidget, f)
{
osg::ref_ptr<osg::DisplaySettings> ds=osg::DisplaySettings::instance();
ds->setMinimumNumAlphaBits(8);
osg::ref_ptr<osg::GraphicsContext::Traits> traits=new
osg::GraphicsContext::Traits(ds);
traits->width=width();
traits->height=height();
_gw = new osgViewer::GraphicsWindowEmbedded(traits);
setFocusPolicy(Qt::ClickFocus);
}
Thank you!
Cheers,
Dženan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30790#30790
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org