TEXUNIT_0 is a #define to 0. I can't make any of the osg::StateSet:set* commands change the state properties. For instance;
stateset -> setMode(GL_LIGHTING, osg::StateAttribute::OFF) has no effect either. Andy. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Melis Sent: 26 September 2006 13:42 To: osg users Subject: Re: [osg-users] How to disable osg::StateSet properties Andy Preece wrote: > Hi All, > > > > I have an osg::StateSet with a texture map. I would like to disable > the texture map during run time but not lose the texture map pointer. > > > > I have tried using; > > > > stateset -> setTextureMode( TEXUNIT_0, GL_TEXTURE_2D, > osg::StateAttribute::OVERRIDE|osg::StateAttribute::OFF ) ; > Where does the symbol TEXUNIT_0 come from? I can't find it in the OSG headers. Have you tried passing a simple 0 instead of TEXUNIT_0? Paul > > > but the object remains textured. Is there something else I have to do? > > > > Regards, > > Andy > > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star.The service is > powered by MessageLabs. > ________________________________________________________________________ > >----------------------------------------------------------------------- - > >_______________________________________________ >osg-users mailing list >[email protected] >http://openscenegraph.net/mailman/listinfo/osg-users >http://www.openscenegraph.org/ > -- Paul Melis VR Specialist, Center for High-Performance Computing & Visualization, University of Groningen, The Netherlands T: +31 50 363 9298 E: [EMAIL PROTECTED] W: http://www.rug.nl/rc/hpcv/index _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ________________________________________________________________________ This e-mail has been scanned for all viruses by Star.The service is powered by MessageLabs. ________________________________________________________________________ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
