Farshid: head on the nail! :-) Hence, it makes no sense storing a color in ShapeDrawable.
Actually, Robert, I think you implemented Shape and ShapeDrawable when you were working here at VRlab in Umeå, right? ;-) Cheers, /A On Sat, Dec 3, 2011 at 12:18 AM, Jason Daly <jd...@ist.ucf.edu> wrote: > ** > On 12/02/2011 03:18 PM, Farshid Lashkari wrote: > > Hi Jason, > > On Fri, Dec 2, 2011 at 11:30 AM, Jason Daly <jd...@ist.ucf.edu> wrote: >> >> I don't understand what you mean here. If you disable lighting, >> material colors are irrelevant. The ShapeDrawable's colors are the ONLY >> way to set the color. >> > > That's actually not the case with OSG. If you look at the source for > osg::Material, you will notice it calls glColor with one of the material > colors (depending on the color mode). This means you can use osg::Material > to control the color of geometry even when lighting is disabled. > > > My mistake, I didn't realize that. I guess I've never hit that use case > before. > > --"J" > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- __________________________________________ Anders Backman, HPC2N 90187 Umeå University, Sweden and...@cs.umu.se http://www.hpc2n.umu.se Cell: +46-70-392 64 67
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org