-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clipping region not functioning for block held in beaker #212
Comments
Since this behavior was working before, and it is the desired behavior, marking as high priority since my guess is some investigation will yield a solution fairly quickly. |
This was due to a test that was using incorrect bounds for the beaker. I think this may be the result of an attempted optimization that I did that was done incorrectly. It should be fixed now, and we should have it verified in the next release. Unassigning until then. |
It is worse in the published version |
From #212 (comment):
Right! Good catch. If the upper block is being grabbed, there is no clipping mask wherever the blocks overlap, as if their two clipping masks are canceling each other out. @jbphet do you think this is reasonable to fix/worth fixing?
This issue was found after publication, so the original (and much more noticeable) problem identified in #212 (comment) is present in the published version.
Since both blocks are transparent, this is intentional. |
I took a look at the code, which is in It might be possible to use some of the constructive area geometry (CAG) methods to make a union of these shapes. I'm skeptical that this would work, however, since the winding direction of the holes in the clipping mask have to be drawn in the opposite direction of the outside of the mask, and the CAG methods don't appear to provide any control over this. So, bottom line, I don't think it's worth the time and effort to try to address this. If it's any consolation, even with this (IMO minor) issue, the clipping still works way better than it did in the Java version. Since the more significant problem that originally motivated this GitHub issue is fixed and verified, I'm going to close this issue. |
After #114 was implemented, a clipping region was in place to keep the back of the blocks opaque when they're in the beaker, regardless of wether they're resting or being held by a user. See behavior from dev.10:
At some point, this functionality stopped working when the block is being held inside the beaker. See the behavior on the published version:
@jbphet is going to look into this. Also assigning @ariel-phet for prioritization.
The text was updated successfully, but these errors were encountered: