Hi OSG developers!

 

I'm trying to draw antialiased lines with OSG ver .2.2, but I'm having
problems.

 

This is my code:

 

   osg::ref_ptr<osg::Hint> antialiasHint = new
osg::Hint(GL_LINE_SMOOTH_HINT, GL_NICEST);

   StateSet->setAttributeAndModes(antialiasHint.get(),
osg::StateAttribute::ON);

 

Obviously I've also set a blending function.

Is there something wrong in my code, or a well-known bug in OSG 2.2?

 

Note that in OSG ver. 1.2 I obtained the same effect just by calling:

 

   StateSet->setMode(GL_LINE_SMOOTH, osg::StateAttribute::ON);

 

This still does work in OSG ver 2.2, but I wanted to update my code to the
correct use of glHint

under OSG.

 

Thank you in advance.

Gianluca Natale

 

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to