Hi,

I remember there is some code using TangentSpaceGenerator and
setVertexAttribArray(), but I can't find them in current OpenSceneGraph
version:

...
osg::ref_ptr<osgUtil::TangentSpaceGenerator> tsg = new
osgUtil::TangentSpaceGenerator;
tsg->generate(geo, 0);
geo->setVertexAttribArray(6, tsg->getTangentArray());
geo->setVertexAttribBinding(6, osg::Geometry::BIND_PER_VERTEX);
...

Wang Rui
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to