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/

Reply via email to