Hi Bob; I had created sample Bump Mapping Effect with OSG and used TangentSpaceGenerator and Attributes and Uniforms as you need. Hope this helps.
Download : http://www.fileden.com/files/2007/9/10/1423182/BumpMapping.rar Regards. 2009/7/9 Wang Rui <[email protected]> > 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 > > -- Ümit Uzun
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

