[osg-users] PNG not displaying correctly..

neil.hughes at tesco.net neil.hughes at tesco.net
Mon Mar 2 01:29:44 PST 2009

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.


---- Stephan Maximilian Huber <ratzfatz at digitalmind.de> wrote: 
> neil.hughes at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list