Hi, I'd like to set the visualization mode to wireframe on iOS, I use these instructions:
Code: osg::ref_ptr<osg::StateSet> ss = myModelNode->getOrCreateStateSet(); osg::ref_ptr<osg::PolygonMode> pm; pm = new osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE); ss->setAttributeAndModes(pm.get(), osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE); but when the app is running and 'myModelNode' is shown, I keep getting this warning: ... Warning: PolygonMode::apply(State&) - not supported. ... and, of course, the model is drawn as if it is NOT in wireframe. Am I doing something wrong? Is really PolygonMode not supported on iOS? If so, how can I change to wireframe mode? Thanks for your help. Alessandro ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42375#42375 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

