Brede and Robert,

But my the RGB components of the imagery in my database are still black
where the alpha < 1.0.  This must be done during the model building
process I suspect.  Any ideas?

-B

---
RSC
BDC

> -----Original Message-----
> From: Brad Colbert
> Sent: Thursday, September 07, 2006 8:45 AM
> To: 'Brede Johansen'; Robert Osfield
> Subject: RE: [osg-users] OSGDEM database is black where alpha < 1.0
> 
> Brede,
> 
> I got it, thanks tons.  Appears to be working now...
> 
> -B
> 
> ---
> RSC
> BDC
> 
> > -----Original Message-----
> > From: Brede Johansen [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 07, 2006 1:46 AM
> > To: Brad Colbert; Robert Osfield
> > Subject: Re: [osg-users] OSGDEM database is black where alpha < 1.0
> >
> > Brad and Robert,
> >
> > The .osg model from the screenshots didn't enable blend mode.  By
> > adding the line "GL_BLEND ON" OSG 1.2 RC displayed like OSG 1.0.  So
> > it seems to me like the OSG 1.0 release had blend mode enabled by
> > default!
> >
> > This revelals a bug/missing-feature in the OpenFlight loader.  The
> > loader only checks if the image of texture unit 0 is translucent.
> > Information for texture unit 0 is inside the Face record but
> > additional textures comes in a separat mulitexture record missing
this
> > test.
> >
> > PS. The correct way to enable blend mode in Creator is to set the
Face
> > drawing attribute to "Fixed With Alpha" and not rely on the Flight
> > loader detecting translucent images.  Ref. loader option
> > "noTextureAlphaForTransparancyBinning".
> >
> > Regards,
> > Brede
> >
> >
> > On 9/7/06, Brede Johansen <[EMAIL PROTECTED]> wrote:
> > > Hi Brad and Robert,
> > >
> > > Something happened in OSG after the 1.0 release.  My best guess at
the
> > > moment is a change in the default stateset.  Never had the time to
> > > look into it.
> > >
> > > I'm a bit uncertain about the origin of the textures in the
attached
> > > test model so this mail goes only to you.
> > >
> > >
> > > Regards,
> > > Brede
> > >
> > >
> > >
> > > On 9/6/06, Brad Colbert <[EMAIL PROTECTED]> wrote:
> > > > Hi Folks,
> > > >
> > > > Has anyone else out there run into this problem:
> > > >
> > > > I am generating an .osga database using OSGDEM.  The imagery has
> four
> > > > components (Red, Green, Blue, Alpha) but my database is black
> wherever
> > > > the alpha is < 1.0.  What would cause this?  Is it texture
> > compression,
> > > > which I hope isn't being used?
> > > >
> > > > When I use a shader to just show the alpha layer, it's all
white.
> > > > Showing just one of the color layers shows that they are black
where
> > the
> > > > imagery has alphas of < 0.0.
> > > >
> > > > When I use the same imagery to build a database in OSG 1.0 I get
the
> > > > alpha values, but loading that database into an application I
have
> > built
> > > > against CVS OSG, I get the same black behavior.  Strange.  Any
> ideas?
> > > >
> > > > -B
> > > >
> > > > ---
> > > > Renaissance Sciences Corporation
> > > > O/M: 480 290-3997
> > > > F:   425 675-8044
> > > >
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users@openscenegraph.net
> > > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > > http://www.openscenegraph.org/
> > > >
> > >
> > >
> > >
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to