Hi AP,

two ideas:

Play with sv->setCreaseAngle(something else than default PI)
or
yourNode->getOrCreateStateSet()->setAttributeAndModes(new
osg::FrontFace(osg::FrontFace::COUNTER_CLOCKWISE),
osg::StateAttribute::ON);

(CLOCKWISE or COUNTER_CLOCKWISE that is)

Hope this helps,

/Per


On 27 January 2015 at 11:54, Ash Pat <ash_zz...@yahoo.com> wrote:
> Hi,
>
> I am trying to use the SmoothingVisitor to generate the normals. I am not 
> explicitly setting the normals array. However, when rendered it appears as 
> though the normals generated are flipped. The geometry consists of triangle 
> and quad primitives.
>
> I tried it in two ways.
>
> Code:
> osgUtil::SmoothingVisitor::smooth(*pGeometry);
>
>
>
> Code:
> osgUtil::SmoothingVisitor sv;
> pGeode->accept(sv);
>
>
>
> Any suggestions?
> Is there something more to be done?
>
> Thank you!
>
> Cheers,
> AP
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62491#62491
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to