From example/osgthirdpersonview/osgthirdpersonview.cpp
....
osgViewer::CompositeViewer viewer( arguments );
// Turn on FSAA, makes the lines look better.
osg::DisplaySettings::instance()->setNumMultiSamples( 4 );
...
Perhaps that example can help you further along
Paul
Per Rosengren wrote:
>I have tried to enable multi sampling, but it has no effect. This is how I try
>to activate it:
>
>
>modelView = new osgViewer::View;
>
>modelView->setUpViewInWindow
> (400, //x
> 0, //y
> 640, //width
> 480); //height
>
>modelView->getCamera()->getOrCreateStateSet();
>
>stateSet->setAttributeAndModes(new osg::Multisample, osg::StateAttribute::ON);
>
>stateSet->setMode(GL_MULTISAMPLE, osg::StateAttribute::ON |
>osg::StateAttribute::OVERRIDE);
>
>
>I attach my output from glxinfo. It shows what extensions my nvidia card
>supports.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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