I've read this book, but I still don't know how to change this stateset.
I try to disable texture of this model:
osg::StateSet *state = myModel->getOrCreateStateSet();
state->setTextureMode(0,GL_TEXTURE_2D,osg::StateAttribute::PROTECTED |
osg::StateAttribute::OFF);

but it doesn't work.
And I'm confused in getting another texture, too.
Thanks for your help!
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to