[osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF
Franco Tang
osgforum at tevs.eu
Wed Aug 28 10:47:12 PDT 2019
robertosfield wrote:
> Hi GG,
>
>
> When you switch off fixed function lighting via GL_LIGHTING you change the way that OpenGL's fixed function pipeline is configured so it no longer uses the glMaterial/osg::Material values and only uses the glColor/ColorArray (osg::Geometry::setColorArray(..) values.
>
>
Thanks, Robert.
The color issue is about line which osgFX::Outline producted, not about osg::Drawable itself. I meant when I switched off GL_LIGHTING related with Drawable, the color of outline went wrong. I checked the source about osgFX::Outline and found that it used a class of Outline::OutlineTechnique derived from osgFX::Technique. I don't very understand the mechanism about osgFX::Effect.
I would appreciated it if you give me some information about mechanism osgFX::Effect used.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76617#76617
More information about the osg-users
mailing list