-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two arrow heads for polyline arrow material #628
Comments
Thanks @bagnell I was able to reproduce the bug. It is present not just in the columbus view but also in the 3D Globe view. |
@bagnell this happens in 3D and columbus view Here's an example in 3D:
|
The problem is clipping the line segments to the near planes of the multifrustum. For example, if the near plane of the multifrustum intersects a line segment and vertices of the line segment have the x texture coordinates 0.0 and 1.0, the vertex with x texture coordinate is 1.0 could be clipped to the near plane. This would draw the arrow head at the near plane in one frustum and again in the closer frustum. The solution would be to add extra texture coordinates for the adjacent vertices and interpolate at the clipped point. Another idea is to have all of the vertex data in the batch table and add indices to look up the vertex data at the current vertex and the adjacent vertices. |
Also reported here: https://groups.google.com/forum/#!topic/cesium-dev/IsF-ljI1IE0 |
No, I definitely saw two arrow heads last week sometime |
Log depth reduces the likelyhood of multiple frustums, which makes the bug less command, but there will always be cases with multiple frustums (especially when log depth off) so the root cause of the issue is still there. |
Run the polyline Sandcastle example, switch to Columbus view, and zoom in on the polyline with the arrow material. On AMD at least, I see two arrows:
The text was updated successfully, but these errors were encountered: