[osg-users] multisampling antialiasing in OSG

Ümit Uzun umituzun84 at gmail.com
Mon Mar 30 02:54:52 PDT 2009


Hi Gianluca;

I recommend you to use multisampling to implement antialiasing.
You can enable multisample while creating GraphicsContext.

    // Init the GraphicsContext Traits.
    osg::ref_ptr<osg::GraphicsContext::Traits> traits = new
osg::GraphicsContext::Traits;

    // Setup the traits parameters.
    traits->samples                       = 4; // to make anti-aliased.

HTH. Best Regards.

2009/3/30 Gianluca Natale <gianluca.natale at adstorino.it>

>  Hi all.
> I’m using OSG 2.8, I’d like to know if it supports multisampling
> antialiasing,
> and how I can enable it.
>
>
>
> Thanks,
>
> Gianluca Natale
>
>
>
> P.S.= I tried to search for GL_MULTISAMPLE in the whole OSG source code,
> but I couldn’t find it.
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Ümit Uzun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090330/96f307e9/attachment-0003.htm>


More information about the osg-users mailing list