Re: [osg-users] Check support for multi sampling

2008-05-17 Thread Robert Osfield
Hi Per, If the visual isn't supported then osg::createGraphicsContext(Traits*) will return NULL, so if get a null back then you can relax the Traits and try to create the context again. Robert. On Sat, May 17, 2008 at 12:50 AM, Per Rosengren [EMAIL PROTECTED] wrote: I set multi sampling with

[osg-users] Check support for multi sampling

2008-05-16 Thread Per Rosengren
I set multi sampling with the following code: ref_ptr DisplaySettings displaySettings = new DisplaySettings; displaySettings-setNumMultiSamples(16); displaySettings-setMinimumNumAlphaBits(8); modelView-setDisplaySettings( displaySettings.get() ); If the graphics card does not support multi