-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Whole new way of computing a polyline arrow interior. #8793
Conversation
Thanks for the pull request @emackey!
Reviewers, don't forget to make sure that:
|
😆 I guess I'm just that charismatic. |
There's a default 1-pixel width black outline. The previous arrow had an unintentional dark blur around it, on account of blending against transparent black. So, the new default looks somewhat similar to the previous effect, except it's crisp and controllable by uniforms. |
Since outlines work, you can now do hollow arrows.
|
Looks awesome @emackey the lines are definitely much nicer and crisper. There are some issues with horizon views and ending up with an arrow head on each side, from your Sandcastle: |
|
Or maybe it's an artifact of the line being too short for its own head... |
Well it's... less terrible? CI still running. |
I’m not seeing the arrow at all on my iPad. I can try desktop Safari tomorrow. |
The arrow worked on my kids' iPad (Pro or something? 2016-era iPad, I can't keep track of their generations). More testing always welcome. |
Weird. I tried both my iPhone Xs running 13.4.1 (model MTAL2LL/A) and iPad Pro (10.5 inch) running 13.4.1 (model MQDT2LL/A) Can anyone else with an iPad/iPhone give a try and confirm if they see the arrow? |
For comparison, here's a similar demo in master (for mobile: standalone demo) with the blurry solid-color arrow. |
No polyline at all. iPad Air 2 and iPhone 7. I checked the console and there were no related errors (some 404s about missing JS source map files) |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
1 similar comment
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
I'm at a stalemate on this. I presume it's some issue between GLSL and older iOS, but it could be the branch, and I have no hardware that can reproduce it (we have 3 iPads here circa 2017, all show the arrow). Question: How does the affected hardware handle the arrow in the master branch currently? If it's not salvageable, feel free to close this. |
I believe the next version of Safari is getting a new angle-based WebGL backend. So I'm okay with just leaving this open and revisiting as soon as that update is out. I appreciate the effort either way @emackey! |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
# Conflicts: # CHANGES.md
Merged master in, just in case #9064 fixed anything here. |
Thanks @emackey! Unfortunately not. But I still hold out hope the next version of Safari will (since there's a big WebGL overhaul). I also wonder if there is some undiscovered bug in Cesium that is causing this, (vs the WebGL implementation) |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
4 similar comments
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
# Conflicts: # CHANGES.md
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
1 similar comment
Thanks again for your contribution @emackey! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
4 similar comments
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
I was curious about this PR since Safari is now using ANGLE and has much better WebGL support. I merged in main and the arrow now shows up on iOS. So aspects of this PR is a huge improvement over what's in main. There are still some weird behavior at certain angles that someone might look into, but I feel like this PR is something we can revisit sometimes soon. |
try to use it on 2D and zoom in to max zoom, its getting destroyed. |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
3 similar comments
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @emackey! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
@cesium-concierge stop |
I'm closing this for now as it's quite out of date with main. If we wish to revisit this in the future, let's open a fresh PR. Thanks all. |
How did I get roped into this? It has nothing to do with anything I'm working on.
Fixes #3491
Possible continued crazy ideas:
fuzz
does now. Previously there was a sharply aliased boundary between the head and the line, which is fixed here.headLength
centerAmount
which I guess should be renamed tocenterWidth
or some such.Don't try to read this as a line-by-line diff. The whole body has been replaced by new math.