[osg-users] VPB/osgdem and transparent textures

Mike Lewis jhg886 at gmail.com
Wed Jul 2 09:59:40 PDT 2008

Hi Robert,

Thank you for helping me. I actually just started using VPB / osgdem
so I can't say I'm familiar with all the concepts yet. I have only
been using osgviewer to view the .ive or .osg models that osgdem
generates. I was terribly wrong to say the alpha channel was being
ignored; If I go into all the .osg files for the database generated by
VPB, and add "GL_BLEND ON" to every geometry StateSet in the .osg
files, the model displays as desired in osgviewer.

I'm wondering if there is a simple way to tell vpb to generate the
database this way, instead of having to manually add them in?


On Jul 1, 12:57 pm, "Robert Osfield" <robert.osfi... at gmail.com> wrote:
> HiMike,
> What makes you think that the alpha is being ignored?  Have you
> enabled GL_BLEND in your app?
> Robert.
> On Tue, Jul 1, 2008 at 8:39 PM,MikeLewis<jhg... at gmail.com> wrote:
> > Hello,
> > I'm using OSG 2.4 and VPB 0.9.8 and I'm having an issue. I'm handing
> > osgdem raster texture files with transparency but the resulting
> > terrain models seem to ignore the alpha channels entirely. Also, I
> > thought VPB alpha'd out NODATA regions. For some reason, it seems to
> > be coloring them solid black instead, for me. Does VPB support having
> > transparency in the texture imagery? I've tried various PNG and
> > GeoTIFF images and seem to come upon the same result. I've tried the
> > various --RGBA and --default-color command line options to no avail.
> > Am I missing something?
> > Thanks
> > _______________________________________________
> > osg-users mailing list
> > osg-us... at lists.openscenegraph.org
> >http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...
> _______________________________________________
> osg-users mailing list
> osg-us... at lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

More information about the osg-users mailing list