You can change the osg::Texture* assigned to a StateSet above/attached to your geometry to change which texture is associated with it, or just have two parental paths to the your geometry with a osg::Switch choosing which path to follow down to the geometry, then on each path have a seperate StateSet each with its on Texture assigned to it, then to switch you just toggle the osg::Switch.
Robert.
On 9/19/06, chen shan <[EMAIL PROTECTED]> wrote:
Hi EverybodyI have a question about texture.I plan to dynamic toggle texture of geometry. Say, I have two pictures, I map one of the pictures to a geometry, late, I want to map another to it. We can implement it in OpenGL via texture bind. But, I don't know how to do in OSG. Would you give me some suggestions or examples?Thanks. :)Chen Shan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
