Then, the only thing I can think of is to try playing with the normal, manually.
Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weitz, Andrew C. Sent: Tuesday, March 13, 2007 18:28 To: osg users Subject: RE: [osg-users] osg::Fade and Lighting Problem No, there is no material. I just created geometry with a vertex array of four coordinates (for the corners of the rectangle). Then I set its normal and color arrays appropriately. Last, I added the coordinates as a QUADS primitive set. I added the geometry as a drawable to the billboard and then set the billboard's properties (i.e. axis of rotation, normal, etc.). Andrew -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler Sent: Tuesday, March 13, 2007 3:16 PM To: 'osg users' Subject: RE: [osg-users] osg::Fade and Lighting Problem That sounds odd. Do the billboards have a material with odd color values? Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weitz, Andrew C. Sent: Tuesday, March 13, 2007 18:09 To: osg users Subject: RE: [osg-users] osg::Fade and Lighting Problem Zach, Unfortunately, that didn't work for me. Osgconv changed my normals from: (0, -1, 0) and BIND_OVERALL to: (0, -1, 0), (0, -1, 0), (0, -1, 0), (0, -1, 0) and BIND_PER_VERTEX When I loaded the new model, it still had the same lighting problem (all white). Andrew -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler Sent: Tuesday, March 13, 2007 2:49 PM To: 'osg users' Subject: RE: [osg-users] osg::Fade and Lighting Problem 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/ _______________________________________________ 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/ _______________________________________________ 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/
