Hi,

I'd like to thank everyone for their suggestions so far.  I've tried
several different things, but none have worked.

Robert, I applied a BlendColor, but my model still appeared all white
(flushed out from the light).  When I applied the BlendColor with
lighting off, my model did not fade in/out.

I also received a recommendation from someone to apply a colored
material to the billboard, because osg::Fade seems to operate on
materials.  Once I applied the material, my billboard retained the
proper color, but it stopped fading in/out.

Zach, I've attached the model to this email.  I didn't include the fade
node because that's not part of OSG.  For some reason, the model isn't
as flushed out in the stock osgViewer as it is in my app.

As of now, I'm out of ideas and pretty confused as to why this is not
working.

Andrew


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Wednesday, March 14, 2007 3:17 AM
To: osg users
Subject: Re: [osg-users] osg::Fade and Lighting Problem

Hi Andrew,

When I do fading affects I have use osg::BlendColor in a StateSet that
decorates the subgraph of interest.

Robert.

On 3/13/07, Weitz, Andrew C. <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an OSG-based application with several billboards that contain
> rectangular geometry.  I made the billboards children of LOD nodes so
> that they disappear at a certain distance.  I wanted to create a fade
> effect, so I downloaded Don's osg::Fade class from
> http://www.andesengineering.com/misc/fade.tar.gz.  This class seems to
> use lighting in order to fade objects in and out.
>
> My problem is that I had GL_LIGHTING turned off for the billboards.  I
> did this because when lighting is on, they show no color (they appear
> all white from the light).  Unfortunately, the fade in/out will not
work
> when GL_LIGHTING is off.  Does anyone know how I can retain the
> billboard's color without turning off lighting?
>
> Thanks,
> Andrew
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Attachment: billboard.osg
Description: billboard.osg

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to