[osg-users] PrimitiveSet lighting issues

Jean-Sébastien Guay jean-sebastien.guay at polymtl.ca
Mon Sep 24 11:51:59 PDT 2007


Hello Nelson,

> I'm drawing  osg::PrimitiveSet::LINES deep inside my node architecture.
> The lines come up the right color, but depending on the camera position,
> the line tends to turn black.  I would like the line color to stay
> constant regardless of the camera position.

If you want a constant color and no shading at all, you can just use  
the emissive color in the object's material. It is independent of view  
and lighting conditions.

Good luck,

J-S
-- 
______________________________________________________
Jean-Sebastien Guay     jean-sebastien.guay at polymtl.ca
                         http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the osg-users mailing list