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/

Reply via email to