Hi Raphael, If you are embedded the OSG within an existing OpenGL graphics context then no OSG settings will make any difference, you'll have to request a multi-sample visual from whatever toolkit you are using to create the graphic context.
Robert. On Tue, Nov 18, 2008 at 10:01 AM, Raphael Sebbe <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to enable multisampling in an embedded viewer, with no luck so > far. It works great on stand alone Viewer though. > Here is what I do: > > Create an OpenGL buffer with multisampling enabled. Then, this: > osg::DisplaySettings * ds = osg::DisplaySettings::instance(); > ds->setNumMultiSamples(4); > _osgViewData->window = > _osgViewData->viewer->setUpViewerAsEmbeddedInWindow(100,100,bounds.width, > bounds.height); > > But this doesn't make it. I also tried this: > ref_ptr< DisplaySettings > displaySettings = new DisplaySettings; > displaySettings->setNumMultiSamples(4); > _osgViewData->viewer->setDisplaySettings( displaySettings.get() ); > _osgViewData->window = > _osgViewData->viewer->setUpViewerAsEmbeddedInWindow(100,100,bounds.width, > bounds.height); > Same result. > Do you have any recommendation on what to check to make multisampling > anti-aliasing work? > Thank you, > Raphael > _______________________________________________ > 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

