<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<p dir="auto">Haha, this is it! Thanks :)<br>
</p>
<br>
<br>
<br>
<div class="x_gmail_quote">On Tue, Jun 14, 2016 at 6:24 PM +0200, "Robert Osfield"
<span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span> wrote:<br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">HI Antoine,<br>
<br>
The osg::Geometry::*Binding parameters have moved to osg::Array, so:<br>
<br>
  normals->setBinding(osg::Array::BIND_PER_VERTEX);<br>
  geometry->setNormalArray(normals);<br>
<br>
Or short hand for doing this:<br>
<br>
  geometry->setNormalArray(normals, osg::Array::BIND_PER_VERTEX);<br>
<br>
Robert.<br>
<br>
<br>
<br>
On 14 June 2016 at 16:58, Antoine Rennuit <antoinerennuit@hotmail.com> wrote:<br>
> Hi all,<br>
><br>
> I have been using Geometry::setNormalBinding() and setColorBinding() in my<br>
> code for years but I have just realized that the code is now deprecated<br>
> because it is not efficient. I have read some more details about it here.<br>
><br>
> Now I am looking for the new and preferred way to do these bindings and have<br>
> looked in many many places. The problem is they all seem to refer to the<br>
> dirty old way of doing things, even the quick start guide, or the wiki. I<br>
> have also looked in the examples but there are so many that I am lost.<br>
><br>
> Anyone can give me a hint here or point me to a relevant example or link?<br>
><br>
> Kind regards,<br>
><br>
> Antoine<br>
><br>
><br>
> _______________________________________________<br>
> osg-users mailing list<br>
> osg-users@lists.openscenegraph.org<br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
><br>
_______________________________________________<br>
osg-users mailing list<br>
osg-users@lists.openscenegraph.org<br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div>
</span></font>
</body>
</html>