Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-09-02 Thread Franco Tang
Ulrich Hertlein wrote: > Hi Franco, > > From the png I understand that you have a Group with Geodes A and B. > The effect will *always* be applied to the entire node that it's attached to, > so if you > want to have the outline only on A or B then you must attach the effect to A > or B, not

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-09-02 Thread Franco Tang
robertosfield wrote: > Hi GG, > > > I'm not the author of osgFX::Outline so the only way for me to give you more > information would be to reach through the code myself and then pass on my > interpretation.  This is something you can do too, and would recommend as you > are the one that

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-09-02 Thread Ulrich Hertlein
Hi Franco, From the png I understand that you have a Group with Geodes A and B. The effect will *always* be applied to the entire node that it's attached to, so if you want to have the outline only on A or B then you must attach the effect to A or B, not the parent Group. Hope this helps.

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-08-29 Thread Robert Osfield
Hi GG, I'm not the author of osgFX::Outline so the only way for me to give you more information would be to reach through the code myself and then pass on my interpretation. This is something you can do too, and would recommend as you are the one that wants to learn about it. As a general note,

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-08-28 Thread Franco Tang
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 >

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-08-28 Thread Franco Tang
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 >

Re: [osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-08-28 Thread Robert Osfield
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. Robert. On Wed, 28

[osg-users] osgFX::Outline lose material color while GL_LIGHTING set OFF

2019-08-27 Thread Franco Tang
Hi, I add a ShapeDrawable whose GL_LIGHTING was set OFF to osgFX::Outline. I found the border generated by stencil diplayed as ShapeDrawable's color rather than the color I set to osgFX::Outline. When I set GL_LIGHTING ON, it displayed correctly. Then I tested with "cow.osgt" whose GL_LIGHTING