[osg-users] How to avoid Z Fighting

2009-10-20 Thread Miguel Lokida
Hi, Here 's my problem. My scenegraph contains some big an little objects. But when rendering, I have some Z fighting with coplanar triangles and also, when I place my camera around a little object the znear is to big and my object is cutted. So I have used setNearFarRatio with 0.1. Like

Re: [osg-users] How to avoid Z Fighting

2009-10-20 Thread Robert Osfield
Hi Miguel, The OSG will try to do it's best at optimizing the near/far planes out of the box, but it isn't a magic wand that solves all z fighting issues. There are a range of strategies that you can use to help avoid z fighting, from using depth partitioning (see the osgdepthpartion example) to

Re: [osg-users] How to avoid Z Fighting

2009-10-20 Thread Tomlinson, Gordon
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Tuesday, October 20, 2009 3:55 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] How to avoid Z Fighting Hi Miguel, The OSG will try to do it's best at optimizing the near

Re: [osg-users] How to avoid Z Fighting

2009-10-20 Thread Miguel Lokida
Thank you for the glPolygonOffset. I haven't though about it. That works well. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18443#18443 ___ osg-users mailing list