Try osgconv --smooth yourBillboardedModel.osg new.osg

This should fix any normals that are in your model, and for the billboards
to be lit correctly.  Of course, you'll have to turn GL_LIGHTING back on for
the model.

I remember doing the same thing with osg::Fade.  Maybe someday one of us
will integrate it into the main codeline, and get fade-lods for everybody?


Zach

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weitz, Andrew C.
Sent: Tuesday, March 13, 2007 17:14
To: osg users
Subject: [osg-users] osg::Fade and Lighting Problem

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