Hi, I just tried the: osg::DisplaySettings::instance()->setNumMultiSamples( 4 );
and didn't get it to work either at first try. I found out that is must be called right after osg::ref_ptr<osgViewer::Viewer> viewer = new osgViewer::Viewer; then it worked just fine.. would have been nice with a warning or something when you try to call setNumMultiSamples after window initialization (if that is the problem). regards, Peter Wraae Marino http://osghelp.com On Fri, May 30, 2008 at 3:05 AM, Leeten <[EMAIL PROTECTED]> wrote: > > Hi, all > > I'm using OSG 2.4 and I can't find GL_LINE_SMOOTH or GL_POLYGON_SMOOTH > something in it. The lines and edges of polygons in my scene are > jagged( shown in the attachment ), so I'm trying to find some antialiasing > way. I've tried the fllowed way which seemed helped nothing. > > 1) set the Mode of scene group with "GL_MULTISAMPLE_ARB"; > 2) using osg:: DisplaySetting->insence()->setSampleNum( 4 or 8 or 16 ); > 3) set the Attribute of scece root with "osg::Hint" or "osg::MultiSample"; > > all above occured nothing change of the jagged edges and lines. Could > someone hits me a little? > > PS: I'm not using osgViewer::Viewer directly, I'm using osgUtil:: SceneView > to render my scene and developing on VC 2003.net. > > 3x. > 2008-05-30 > ------------------------------ > Leeten > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

