When you say "weird" what do you mean? If you have polygons that are
positioned/aligned very closely to one another you might be seeing
z-fighting (http://www.zeuscmd.com/tutorials/opengl/15-PolygonOffset.php).
In that case you can tell OpenSceneGraph to use polygon offset on one of
the models.
osg::ref_ptr<osg::PolygonOffset> polyOffset = new osg::PolygonOffset;
polyOffset->setFactor(1.0f);
polyOffset->setUnits(1.0f);
ss = someNode->getOrCreateStateSet();
ss->setAttributeAndModes(polyOffset);
On Sat, Feb 16, 2013 at 1:57 AM, wh_xiexing <[email protected]> wrote:
> **
> hi friends:
>
>
> i have 2 models to render, some part of which are overlaped . so the
> result is some kind of weird. how can i resolve this probem?
>
> do i need to split the model and align them? or set different render
> details for the 2 models?
>
>
> ------------------------------
> Shawl
>
> _______________________________________________
> 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