Hi Leeten,

Full screen anti-aliasing is different the line and polygon smooth
modes, for these you just do stateset->setMode(GL_LINE_SMOOTH,
osg::StateAttribute::ON); etc.

As for full screen anti-aliasing, the advice given so far won't help
you, as it only works for osgViewer based apps that use the inbult
graphics context generation.   As you are managing the graphics
context yourself you are on your own, it's entirely up to you how you
create and manage your context - it's here you'll need to enable FSAA
yourself.

Personally I don't recommend using SceneView yourself, you'll just end
up needing far more support when you want to add all the "extra"
features like anti-aliasing, multi-context, multi-thread, database
paging, event handling.... all the things that go into providing
viewer functionality, while all this functionality is already there
for you, in osgViewer.

Robert.

On Fri, May 30, 2008 at 2:05 AM, Leeten <[EMAIL PROTECTED]> wrote:
>
> Hi, all
>
> I'm using OSG 2.4 and I can't find GL_LINE_SMOOTH or GL_POLYGON_SMOOTH
> something in it. The lines and edges of polygons in my scene are
> jagged( shown in the attachment ), so I'm trying to find some antialiasing
> way.  I've tried the fllowed way which seemed helped nothing.
>
> 1) set the Mode of scene group with "GL_MULTISAMPLE_ARB";
> 2) using osg:: DisplaySetting->insence()->setSampleNum( 4 or 8 or 16 );
> 3) set the Attribute of scece root with "osg::Hint" or "osg::MultiSample";
>
> all above occured nothing change of the jagged edges and lines. Could
> someone hits me a little?
>
> PS: I'm not using osgViewer::Viewer directly, I'm using osgUtil:: SceneView
> to render my scene and developing on VC 2003.net.
>
> 3x.
> 2008-05-30
> ________________________________
> Leeten
> _______________________________________________
> 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