Hi Martin,
This does not seem to work. The removeTextureAttribute method is called, but I can still see the textures on the meshes. Is this the correct way to remove the textures?
Keep in mind that Drawables also have a stateset which you won't get to by using the code you posted. So in addition to removing the textures on all statesets assigned to nodes, you also need to override apply(Geode&) and loop through all Drawables and remove the textures there too.
If that still doesn't work, then you could use osgDB::writeNodeFile() after running the visitor, to output the resulting subgraph to a .osg file which you can load in a text editor to see where the remaining textures are.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org