Thanks Adrian, changes merged and submitted to SVN.
On Fri, Sep 5, 2008 at 7:41 AM, Adrian Egli OpenSceneGraph (3D) <[EMAIL PROTECTED]> wrote: > Hi all, > > i came around reviewing my code, and found now finally a solution to remove > the polygon offset issue. as we all know the polygon offset has a different > behaviour on different GPU system (ATI, NVidia) and this make the use of > polygon offset complicate. so i looked for a solution to remove this offset. > > i changed the shader, also the filtering (default: on) use now a correct 3x3 > filter: > 1 0 1 > 0 2 0 > 1 0 1 > > div: 6 > > of course a better one would be > 1 2 1 > 2 4 2 > 1 2 1 > > div: 16 > but this isn't as performant as the simple filter above is. because we need > only 5 texture lookups instead of 9, and the result is still good, if you > wish we can add a enum to change the pcf filter type once, if there is a > need. > > > testet on NVidia Quatro 570M and on ATI Radeon X1600 > > > please enjoy it. > > > regards adrian > > -- > ******************************************** > Adrian Egli > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
