-
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
PointPrimitive and PointPrimitiveCollection #2632
Merged
Merged
Changes from 14 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
86e94c7
Started work on a point primitive.
emackey 30c968d
Specify PrimitiveType.POINTS.
emackey bca313c
Added some shaders for PointPrimitiveCollection.
emackey a9ba911
First sign that it's working!
emackey 92820a4
Tweak anti-aliasing.
emackey 7221af4
Remove cruft.
emackey 4adcff3
Rename 2 parameters to match entity.point, rearrange attributes.
emackey 1bdcab5
Upgrade VAF to not split up un-indexed verts into 64k chunks.
emackey d9ed942
Copy fix from #2630.
emackey 1a5923d
Merge remote-tracking branch 'origin/master' into point-primitive
emackey 887213a
Add unit tests for PointPrimitive and its collection.
emackey 6d0389f
Switch PointVisualizer to use PointPrimitives instead of Billboards.
emackey 7bfd1be
Make the point sizes match the old behavior.
emackey 7ccd504
Update CHANGES.md.
emackey 1b847ad
Merge remote-tracking branch 'origin/master' into point-primitive
emackey ad5d2bf
Add clamps for min/max point sizes. Add browser-zoom scale.
emackey 0bbf178
Fix problems with point size clamping logic.
emackey 3c462a6
Merge remote-tracking branch 'origin/master' into point-primitive
emackey 95d4943
Merge remote-tracking branch 'origin/master' into point-primitive
emackey 91b3e91
Merge remote-tracking branch 'origin/master' into point-primitive
pjcozzi a025567
Remove unused variables.
emackey f0fdbe6
Add "Points" entity demo, and fix missing translucencyByDistance.
emackey cf2852d
Add development PointPrimitive demo.
emackey 22f0cd4
Some updates after review. More to come.
emackey ae10cad
Destructor cleanup.
emackey cbdbf2c
Refactor pointPrimitive specs to use Specs/createScene.
emackey 6cd15fa
Merge remote-tracking branch 'origin/master' into point-primitive
emackey 62a4593
CHANGES.md - Pushed to v1.10.
emackey 31c7920
Incorporate some changes from Billboards in #2669.
emackey d38ff18
Doc tweak.
emackey 5dc4195
Merge remote-tracking branch 'origin/master' into point-primitive
emackey f073a28
Tweak CHANGES.md
pjcozzi 36e3c20
Tweak doc
pjcozzi 773cc50
Make `czm_nearFarScalar` a shared function.
emackey fe63450
Tweak tests.
emackey 6f7fb55
Improve coverage by adding missing tests.
emackey 698839d
Test name grammar cleanup.
emackey 8bd5dc9
Added test for czm_nearFarScalar.
emackey 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
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
Oops, something went wrong.
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.
We probably need to add a
scene.clampPointSize
similar toscene.clampLineWidth
to avoid assigning a size the card/drivers don't support. I also assume all cards have fairly large maximums?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.
Thanks. I've added this to the vertex shader, where in the most recent version this takes place after outline width and scale-by-distance effects have been included in the total glPointSize.
The typical size limits are shown on the very bottom chart on webglstats.com. Looks like the availability of extra-large (1023px) points has grown substantially in just the past year. Typical CZML point size real-world uses are far below 63 pixels, so they read as above 99% availability on this chart.