I don't care if the light point occludes objects within a few meters.  Would
using a PolygonOffset work with a meter offset? 

I believe PolygonOffset won't work for you when viewing the light at an
obtuse angle, say from the side, and slightly in front of, the vehicle. In
such a case, the further headlight would need a greater depth offset than
the near headlight to in order to completely avoid intersecting the vehicle
body.
 
In general, whether PolygonOffset produces acceptable results or not varies
depending on available depth buffer precision, and how you've set your
near/far planes.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
303 859 9466
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to