Dashed polyline material

Hello,

I am evaluating what it would take to implement a dashed polyline
material.
The properties would be:
- even and odd colors;
- even and odd line lengths;
- granularity according to distance.

The stripe material, using 'horizontal: false', fits the first property
and looks like a good start. Are there materials with a 'scaleByDistance'
property, similar to the Billboard?

For clarity, here attached is a sample using ol3 on the left and the
stripe material on the right.

BR,

Hi Guillaume,

This paper is a good start: http://jcgt.org/published/0002/02/08/

I don’t think anything other than Billboard has scaleByDistance, but its implementation is straightforward (see here).

Patrick

Hi Patrick,

Thank you for the link.

BR,

Guillaume