-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Added allowPicking to Entity to allow per-entity picking. #4410
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
Conversation
|
Thanks @dwhipps! I've marked this for the bug bash so we'll be sure to review it then if we don't get a chance to ahead of time |
Keeping up to date with master
|
@dwhipps thanks for this nice contribution and all your past contributions. Someone will need to do a detailed review at the bug bash, but I took a quick look at this and I think it is the right direction. I suggest:
|
Keeping up to date with master branch
|
|
Thanks @dwhipps! I plan on reviewing this during the bug bash, but the one major thought I have is that we were originally planning to have a picking priority number instead of a simple boolean (with 0 being disabled). Think of a billboard inside of an ellipsoid. I want to pick the billboard instead of the ellipsoid, but still pick the ellipsoid if I click anywhere else on it. That being said, I think that feature will either be trivial to do now that you laid all of the ground work OR has some really complicated aspects I haven't thought of which would lead us to just use the pickEnabled boolean that you've already set up. I don't expect you to try to update the PR to implement pick priority, I'm just thinking out loud. It might be overkill. When I get a chance to look at the code, I'll provide some more concrete thoughts. Either way, I'm excited for this PR and all of the work you've been doing on Cesium. Thanks again. |
|
Matt, Happy for this to form the basis for pick priority if that's what you want to use it for. I just wanted the ability to do this in my app, and thought I'd contribute it back. For the record, this still needs to be QA'd. It's passing all tests (as well as my basic testing here) but needs a good once-over before I'd put it out in the wild.
|
Keep up to date with master
Keeping up to date with master branch
A separate PR would be great, thanks! |
I believe we would implement this will drill picking: pick all objects, then select the one with the highest priority. There could be an early exit if we know the highest priority or limit the number of depth layers to explore (which I highly suggest). I don't think this would need the new boolean. |
Right, that's exactly what I planned on doing, the new boolean would be replaced with a number defaulting to 1, 0 would mean do not pick. |
OK with me. So this would keep a fast path for |
Right, my only concern is churn, I'm going to try and prototype the priority picking locally, but at the first sign of trouble, I'll punt to a future pull. |
|
@mramato Anything more you want me to do on this one? I feel like this PR is "complete" but not necessarily the implementation you wanted (i.e. "pick priority"). |
|
We will most likely take this PR largely as is and save the priority part for a future PR, I just need to carve out the time to actually review the existing code before merging. |
|
@dwhipps we have another bug bash in February. We'll see if someone can review this then. |
|
What's the status of this PR @mramato? This would be helpful for a number of our users so it would be great to get this merged |
|
Any news on this ? Would be useful |
|
@crubier sorry, we haven't had a chance to revisit this yet |
|
It'd be great to see this feature make it through the pipeline. I have manually merged this into my 1.46 local working for Billboards/etc. "out of the box", but the GeometryUpdaters have changed a lot so had to hunt down the where the primitives get created. Is there an update on when this feature may next be evaluated/reviewed? |
|
Hi @smlawrence, sorry no update. We're not quite sure if the is is the method we want to use for this kind of feature and haven't had a chance to dig into it yet. It is high priority though since this is a feature that's requested frequently from our users. |
|
Thanks again for your contribution @dwhipps! 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 am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
|
@mramato do you think we should close this or park it on a branch or what? This PR has been open for 2 years and we need a plan. |
|
Thanks again for your contribution @dwhipps! 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 am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
|
Thanks again for your contribution @dwhipps! 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 @dwhipps! 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 |
|
Please someone add this feature |
|
Thanks again for your contribution @dwhipps! 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 |
3 similar comments
|
Thanks again for your contribution @dwhipps! 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 @dwhipps! 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 @dwhipps! 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 |
|
This is a greatly needed feature. Please implement... |
|
Thanks again for your contribution @dwhipps! 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 going to close this due to inactivity. Thanks for the work you put into this @dwhipps! This just isn't quite the approach we want and we haven't had a chance to revisit a different strategy. Hopefully this is something we'll get to before too long. |
Was an alternative for this implemented? |
This relates to issue #2895.
Please note that this is an initial stab at this and probably needs more work. Also note that while jsHint and test-non-webgl pass, for some reason I can never (even on master branch) get the test-webgl tests to complete, so I suspect that several of my new tests have problems.
At this point I'd just like some comments on my implementation, before I spend a lot of time looking further into this.