Hi Forest,

The DisplaySettings is just a hint to the code that sets up the
graphics window what is required.  osgViewer::GraphicsWindow*
implementations all honour this hint.  It looks like osgviewerMFC
isn't.  Go have a look at the GraphicsWindowWin32 implementation to
see how to set up multi-sample visuals under Windows.

Robert.

2008/12/1 forest37 <[EMAIL PROTECTED]>:
>  hi all,
>     I use codes like this to antialiase :
> osg::DisplaySettings* ds = osg::DisplaySettings::instance();
>  ds->setNumMultiSamples(16);
>  mViewer->setDisplaySettings(ds);
>
>   It works well in console program(full screen).when I add the codes to the
> osgviewrMFC program,it doesn't work well.why?
>
> thanks for any hint.
> best regards
>
> forest
>
> ________________________________
> [广告] 金秋最关注楼盘-房不胜房
> _______________________________________________
> 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

Reply via email to