[osg-users] OpenSceneGraph-3.4.1-rc3 tagged

2017-08-24 Thread Robert Osfield
Hi All, I have just tagged the 3.4.1 release candidate 3: https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3.4.1-rc3 I have only made a couple of minor changes since rc2, so it feels like we are converging nicely to a stable release. If feedback is positive I'll tag 3.4.1

Re: [osg-users] Can see parts of the back side of a model

2017-08-24 Thread Robert Osfield
Hi Bruce, A quick look at the OSGWidget.cpp and it looks to me like the code is creating its own osg::Camera and assigning it to the view but this Camera never sets up global default state so OpenGL defaults will be used, depth testing is off by default in OpenGL, which in turn will give this

Re: [osg-users] Custom data within nodes or drawables

2017-08-24 Thread Antoine Rennuit
That's awesome! Thanks a lot Robert, Antoine. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71522#71522 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Custom data within nodes or drawables

2017-08-24 Thread Robert Osfield
HI Antoine, The osg::Object base class a coarse grained Object::setUserData(Referenced*) feature, or a fine grained template based Object::setUserValue(strd::string& name, T value); method. The later functionality is managed via UserData using a UserDataContainer class that agregates use the

[osg-users] Custom data within nodes or drawables

2017-08-24 Thread Antoine Rennuit
Dear OSG forum, I am currently implementing picking and selection inside my app. I have setup everything up to the point where I can know the osgUtil::Intersection and with it the Drawable that was picked. Now, what I am really interested in is not the Drawable or Node itself but the object

Re: [osg-users] Mesh Outline

2017-08-24 Thread Nabil KHALIFA
Hi, Problem solved by using PolygonOffset On 22 August 2017 at 18:08, Nabil KHALIFA wrote: > Hi, > ​I use OSG to draw the silhouette outline of a mesh. > The result is fine. But when i superpose the silhouette and the mesh, the > inner border of the box are hidden (the

Re: [osg-users] Can see parts of the back side of a model

2017-08-24 Thread Robert Osfield
HI Bruce, On 24 August 2017 at 01:09, Bruce Clay wrote: > I am using OSG 3.4 with QT 5.8 and Visual Studio 2015. I am also using > the QT osgWidget class I found on line. When I load a model I can see > parts of the inside or back side of the model. One viewer noted that

Re: [osg-users] Can see parts of the back side of a model

2017-08-24 Thread Voerman, L.
Hi Bruce, backface culling does not work with surface normals, the front and back faces are separated by the vertex winding. your model might have the faces in the wrong direction - or QT might have left openGL in an unexpected state. maybe this could help: osg::ref_ptr cf = new