Hi Brad, Thanks for your answer. Currently, I place the decal on the road segment without depth testing. For flat surfaces (planes) it works fine. When the road has a bump or has an incline the depth test seems to be needed. Some lane markers are drawn where they should be hidden (depth test fail).
I start to think there is no overall solution. Probably have to separate the problem in two: 1. 2D Surfaces: Use stencil buffer. 2. 3D Surfaces: Use polygon offset, height offset. Cheers, Raymond. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44130#44130 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org