xiaoshuxing schrieb: > Anyone who can tell me how to toggle anti-aliasing?
You can enable it with your video drivers or from code via: osg::DisplaySettings * ds = osg::DisplaySettings::instance(); ds->setNumMultiSamples(numSamples); // numsamples 2, 4 or 8 before realizing your viewer. > Is there any special function or stateAttribute to control anti-aliasing? On Mac OSX you can try to add a stateset to the given node: node->getOrCreateStateSet()->setMode(GL_MULTISAMPLE_ARB, osg::StateAttribute::ON); this is not supported for every hardware, but should work on other platforms. A google-search for GL_MULTISAMPLE_ARB reveals some more info. HTH, Stephan _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
