Hi Stephan,

I'm not sure. I shall investigate further.

Paul's suggestion has demonstrated that the osgviewer displays the png 
correctly, so I guess that, coupled with you suggestion, gives me a good 
starting point for  investigating what's wrong at my end.

Many thanks.

Neil



---- Stephan Maximilian Huber <ratzf...@digitalmind.de> wrote: 
> neil.hug...@tesco.net schrieb:
> > Hi All,
> > 
> > Please find attached a png file that has a purple circle, black boarder, 
> > and an alpha channel. I'm using OSG1.2, and trying to read it in via the 
> > png pluggin, and apply it to an object. The PNG loads, but the alpha 
> > channel is being ignored, and I get solid white instead of the underlying 
> > object color/texture. 
> > 
> > Please could someone tell me is there something wrong with the png file, 
> > the reader, or am I doing something that's not possible.
> > 
> > Many thanks for any help.
> 
> there was no attachment.
> 
> Have you enabled GL_BLEND for your geometry?
> 
> node->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON);
> 
> 
> cheers,
> Stephan
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to