[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

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Beatrix Miller
Hi, Such a helpful topic! ... Thank you! Cheers, Beatrix -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71429#71429 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Robert Osfield
Hi Nickolai, On 10 August 2017 at 20:39, Nickolai Medvedev wrote: > Hi, Robert. When i compiling OSG 3.4.1 on Visual Studio 2012, got an error: > > E: \ OpenSceneGraph-3.4.1-rc1 \ src \ osgUtil \ ShaderGen.cpp (199): fatal > error C1017: Invalid integer constant expression

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

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Nickolai Medvedev
I tested on osgviewer. Logs are attached. Your last-revised boolean defines nothing to do with it. Before the changes, StatsHandler also did not work. When i press 's', appears text with FrameRate. When I press 's' again, the program crashes. -- Read this topic online here:

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Robert Osfield
Hi Nickolai, On 17 August 2017 at 21:48, Nickolai Medvedev wrote: > I tested on osgviewer. Logs are attached. > It's a stack trace rather than console output is what we need to start looking at the cause of the crash. > Your last-revised boolean defines nothing to do

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Nickolai Medvedev
> It's a stack trace rather than console output is what we need to start > looking at the cause of the crash. There is nothing in the console. > Do you mean the CMakeLists.txt changes relating to GL.in? Yes. > Did this happen with 3.4.0 or OSG master? No. With 3.4.1 branch.

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] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Nickolai Medvedev
Hi, Robert. I checked. Now everything builded is fine. There was another problem. When i run StatsHandler, the program crashes. I use GL2 settings. Cheers, Nickolai -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71434#71434

Re: [osg-users] Please test OpenSceneGraph-3.4 in prep for 3.4.1

2017-08-17 Thread Robert Osfield
Hi Nickolai, On 17 August 2017 at 20:53, Nickolai Medvedev wrote: > I checked. Now everything builded is fine. > There was another problem. When i run StatsHandler, the program crashes. I > use GL2 settings. > This sounds like a regression. Could you provide a stack

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