Flickering of lines while rendering #62
-
I am experiencing an issue in my program where lines appear to flicker or jitter when rendered. I have attached a gif that demonstrates the problem. Could you please help investigate what might be causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Your link gives a 404. Can you try again? |
Beta Was this translation helpful? Give feedback.
-
Thanks. This is happening due to floating-point precision loss when using ECEF coordinates in the geometry. |
Beta Was this translation helpful? Give feedback.
-
I pushed a commit that should resolve this issue. The API has changed though, so please refer to |
Beta Was this translation helpful? Give feedback.
-
Hmm, and you are sure the reference point is reasonably close to your data points? |
Beta Was this translation helpful? Give feedback.
-
Thanks, that helps. Try a new pull - should be better. |
Beta Was this translation helpful? Give feedback.
-
Update: The old approach (above) included calling The new approach is similar but simpler: line.referencePoint = GeoPoint(...); Then, just add a vector of points, expressed in the SRS of the reference point (e.g., lon, lat, alt). |
Beta Was this translation helpful? Give feedback.
Update:
I had to change the API again, so there's a new answer to this question. Such is life with a pre-1.0 SDK :)
We made these changes while refining the ECS architecture.
The old approach (above) included calling
setReferencePoint
and using the returnedSRSOperation
.The new approach is similar but simpler:
Then, just add a vector of points, expressed in the SRS of the reference point (e.g., lon, lat, alt).