Skip to content
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

Fix polyline regression with log depth #8703

Merged
merged 6 commits into from
Mar 27, 2020
Merged

Fix polyline regression with log depth #8703

merged 6 commits into from
Mar 27, 2020

Conversation

kring
Copy link
Member

@kring kring commented Mar 26, 2020

Cesium's fancy polyline rendering sometimes needs to clip lines at the near plane. But it was still using the depth of the original vertex after clipping.

Fixes #8663

I had hoped this would fix all the log depth polyline problems, but alas no. There's still something dodgy going on with polyline depth. In any case, this was a clear bug and this fix should go into 1.68.

This PR also includes #8608 (Spector.js shader editor support) because I merged that in in order to help debug this. If anyone has a problem with that, let me know and I'll rebase this PR to remove those changes. But those changes are awesome, so please just merge them too. :)

@cesium-concierge
Copy link

Thanks for the pull request @kring!

  • ✔️ Signed CLA found.
  • ❔ Unit tests were not updated.
    • Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

@mramato
Copy link
Contributor

mramato commented Mar 27, 2020

@lilleyse you're probably the best person to review this, correct? Also, SpectorJS is really useful too, so I personally don't see a reason not to include it.

@lilleyse
Copy link
Contributor

Cool I'll check this out tomorrow

CHANGES.md Outdated Show resolved Hide resolved
@lilleyse
Copy link
Contributor

The change looks good. @kring do you plan on pushing any other fixes in this PR or is this ready?

@kring
Copy link
Member Author

kring commented Mar 27, 2020

This can be merged. I hope to do a another PR today to fix the rest of the polyline/log depth issues.

Co-Authored-By: Sean Lilley <[email protected]>
@lilleyse lilleyse merged commit ec49b61 into master Mar 27, 2020
@lilleyse lilleyse deleted the log-depth-polylines branch March 27, 2020 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polyline regression in 1.67?
4 participants