Some conclusions: the opengl context created in Interface Builder did not respect the requested settings (multisample and sample count). Providing a pixel format manually fixed this issue. As you said, nothing special has to be done on OSG side. Thanks,
Raphael On Tue, Nov 18, 2008 at 11:22 AM, Raphael Sebbe <[EMAIL PROTECTED]>wrote: > Hi Robert, > Thank you, I was not aware of that. I'll experiment some more. > > Raphael > > > On Tue, Nov 18, 2008 at 11:14 AM, Robert Osfield <[EMAIL PROTECTED] > > wrote: > >> 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 >> > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

