I’m having trouble reproducing this exact issue with arbitrary positions. Could you please provide your full code example.
This is the implementation code。
A “full code example” usually refers to a Sandcastle, which can be used to quickly look at the issue. In your case, the most important part would be the cartesians
that you are using to create the polyline.
But here’s an example with some made-up positions that already shows the effect:
I believe each line segment’s dashes are treated independently and in screenspace, which may explain the effect your seeing.
This indeed seems to be the case: The dashLength
is 64, and when carefully moving the view, one can see the effect:
The pattern is applied to each segment, independently. Depending on the structure of the segments, this means that there could basically be a sequence of segments that all have “a length of 63.999
in screen space”, which would cause the whole polyline to be rendered in white (without a pattern).
- You used some
phase
option there - this does not exist forPolylineDashMaterialProperty
. Maybe you meantdashLength
- You should not open multiple threads to ask the same question - Problem with polyline material