[osg-users] Normal and color bindings (in Geometry)
Antoine Rennuit
antoinerennuit at hotmail.com
Tue Jun 14 18:57:03 PDT 2016
Haha, this is it! Thanks :)
On Tue, Jun 14, 2016 at 6:24 PM +0200, "Robert Osfield" <robert.osfield at gmail.com<mailto:robert.osfield at gmail.com>> wrote:
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 <antoinerennuit at hotmail.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160615/7dcb8fb6/attachment-0002.htm>
More information about the osg-users
mailing list