Oh, but then you'd need to ensure your lines and points were drawn after the 
polys, which you could probably do by messing about with render bins.

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Alistair Baxter
Sent: 19 July 2012 15:51
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Z-Fighting issue

If you definitely always want to draw the points on top of the lines, and the 
lines are always drawn over filled surfaces,that are already set up with 
polygonoffset, you could try switching off z-write for your lines:

osg::Depth* depth = new osg::Depth;
depth->setWriteMask( false );
lineNode->getOrCreateStateSet()->setAttributeAndModes( depth, 
osg::StateAttribute::ON );        



-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Bob Slobodan
Sent: 19 July 2012 15:32
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Z-Fighting issue

No one has a clue ?
I've been trying to solve this problem for a while now and I can't figure out a 
way to display my vertices properly.


Thanks anyway !

Cheers,
Bob

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48932#48932





_______________________________________________
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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to