Re: [osg-users] setAttribute / Material issue

2017-08-21 Thread Paul Bigeon
Hi Robert, I managed to get rid of this color problem by effectively going through all my nodes and checking for osg::Geometry color array. Thanks for the help, have a great day ! Cheers, Paul -- Read this topic online here:

Re: [osg-users] setAttribute / Material issue

2017-08-17 Thread Robert Osfield
Hi Paul, On 17 August 2017 at 15:59, Paul Bigeon wrote: > node_stateset->setAttribute(new osg::ref_ptr< osg::Material >(), > osg::StateAttribute::ON); > You can remove a Material attribute by doing: stateset->removeAttribute(osg::StateAttribute::MATERIAL); Or do I have

Re: [osg-users] setAttribute / Material issue

2017-08-17 Thread Paul Bigeon
Hi Robert, Thanks for your answer ! I'm still investigating on the way you described me, and I've considered the issue the other way around and tried to remove every code that could color the nodes by setting their material attribute and also delibaretely changed the osg::Material defined in

Re: [osg-users] setAttribute / Material issue

2017-08-17 Thread Robert Osfield
Hi Paul, Typically when we see inconsistent colouring/lighting in a scene it's due to missing vertex colour or normals on osg::Gemetry leaves in the scene graph, with the shaders or fixed function pipeline relying upon there state for rendering. These missing values will be filled in by any

[osg-users] setAttribute / Material issue

2017-08-17 Thread Paul Bigeon
Hi, I'm very new to OSG, but here's a problem I've stumbled upon. I'll try to give as many as possible infos about the context, but in the case that I miss something please do ask me for more. So, basically, I use OpenSceneGraph 3.5.6.148 with Qt 5.6 to create a 3D Viewer that display a