Hi Brian, To do multi-texturing you simple need to assign a texture coordinate array per texture unit you want to address, with a texture coord per vertex. So if you want two texture's you'll need to assign two texture arrays. The method to use is osg::Geometry::setTextureCoordArray(unit, array). Then you need to set up with textures to use, which you use osg::StateSet::setTextureAttributeAndModes(myTexture, osg::StateAttribute::ON);
A good example of geometry setup can be found in osggeometry, this doesn't do multi-texturing, but it does provide an code segment that sets up the StateSet and Geometry for a single texture, this code segment can easily be extended to do multi-texturing with the above suggestions. Another example that will be useful is osgmultitexture, this does multi-texturing, but rather than use another texture coord array it use tex gen to generate the coordinates. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org