-
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
Fix billboard on terrain and Globe.getHeight #4622
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ead79f4
fix_billboardOnTerrain
duvifn 9f7d911
fix Globe.getHeight function
duvifn 156d5bb
compute origin point at the intersection of the surface normal with t…
duvifn 4d12c0e
add to CHANGES.md
duvifn 9f551ab
typos
duvifn 306c276
Merge branch 'master' into fix_billboardOnTerrain
duvifn 74a7de5
cartesian is computed on the ellipsoid surface
duvifn 30e73ff
fix typo
duvifn 7894d20
added Ellipsoid.getSurfaceNormalRayFromZAxis. no tested
duvifn edfd685
fix Ellipsoid.getSurfaceNormalIntersectionWithZAxis
duvifn 1b4f97d
Merge branch 'master' into fix_billboardOnTerrain
duvifn 23d2fea
factor out sqauredAOverSquaredB
duvifn dbd917d
add _sqauredAOverSquaredB to the Ellipsoid constructor
duvifn 0947e12
add check if radii.z===0
duvifn 244cc52
remove unused dependency, change sqauredAOverSquaredB to sqauredXOver…
duvifn 9ae322c
Whitespace
pjcozzi 056fc20
Whitespace
pjcozzi b394335
Style tweak
pjcozzi 1f325e5
Style tweak
pjcozzi 761eda4
Style tweak
pjcozzi d01196b
fix typo in spec title
duvifn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bagnell , do you think it would be safer to use lower value instead of
0.0
indefaultValue(tile.data.minimumHeight, 0.0)
?for example
-11500.0
(taken from here, wikipedia)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use
-11500.0
. For the lowest resolution terrain tiles, triangle vertices may be near the ellipsoid surface, but the interiors cutting through the ellipsoid will drop to around this height. Is there a reason you didn't useCartesian3.ZERO
? Did you run into precision issues in the triangle intersection test?