HI Antoine, The osg::Geometry::*Binding parameters have moved to osg::Array, so:
normals->setBinding(osg::Array::BIND_PER_VERTEX); geometry->setNormalArray(normals); Or short hand for doing this: geometry->setNormalArray(normals, osg::Array::BIND_PER_VERTEX); Robert. On 14 June 2016 at 16:58, Antoine Rennuit <[email protected]> wrote: > Hi all, > > I have been using Geometry::setNormalBinding() and setColorBinding() in my > code for years but I have just realized that the code is now deprecated > because it is not efficient. I have read some more details about it here. > > Now I am looking for the new and preferred way to do these bindings and have > looked in many many places. The problem is they all seem to refer to the > dirty old way of doing things, even the quick start guide, or the wiki. I > have also looked in the examples but there are so many that I am lost. > > Anyone can give me a hint here or point me to a relevant example or link? > > Kind regards, > > Antoine > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

