-
Notifications
You must be signed in to change notification settings - Fork 4
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
Impurity dots outside of wire #170
Comments
Good eye, this is definitely new because the clip shape was changed for the wire in #165 |
@KatieWoe or @lmulhall-phet can you please see if this is fixed in master? |
Looks fixed to me. |
Looks good on my end |
OK thanks @KatieWoe and @lmulhall-phet, leaving open to make sure this gets into the release branch. |
@zepumph |
From #170 (comment) it makes it seem like this issue is completely fixed in master. @KatieWoe can you confirm that you can't find this "small" version of the bug in master too? |
I agree, but I think it is mighty close. @jessegreenberg this may just be adjusting the clip area ever so slightly. A few more comments about what I found in master. Here is a dot a the edge where it is curved more, and it is a bit off. Where as this dot is pretty much perfect on the end. I'm not sure it needs any tweaking, but it is on the more gentle part of the curve Here is another where I cannot decide if it is outside the wire or not, |
That seems to be the most important thing. The clip shape is scaled down by the radius of the dot to prevent this, but maybe that isn't enough for the corners. |
I am able to reproduce this issue around the rounded corners of the wire if I extend the length of the wire just long enough with the keyboard. |
If the clip shape gets too small the dots start to look like they disappear too early, which IMO is worse than them extending beyond the edge of corners of the wire by a few pixels. I adjusted the scale by a bit to get a happy medium, @KatieWoe and @lmulhall-phet can you play with master and see if this is better? |
@jessegreenberg, I took a look at it in master: Notice how the center-left dot disappears too early. Having a little bit of clipping isn't ideal, but I think it's better than having the dots disappear too early. |
I would agree. Slight clipping is preferable. The clipping is better since the issue was first raised. |
Ok, one more thing we can try is to approximate the arc around the ends of the wire. Using |
The "approximation" will be worst around the corners of the wire. So the current result is that dots that are right at the corners may have a sliver chopped off between the dot and edge of the wire that looks something like this: But I think this is totally reasonable since we have clean clipping for the rest of the wire, better performance, and no dots that are removed too early. @KatieWoe @lmulhall-phet can you please review master and comment if you agree or disagree? |
@jessegreenberg I agree, it looks much better. I noticed the same thing you did in the corners, but on a very high resolution screen I had to squint to notice it. |
OK, great, thanks. In that case this can be merged into the release branch. |
We will not be pulling this into the 1.5 rc. If this has been confirmed fixed in master it can be closed. |
For phetsims/qa#179. On macOS 10.13.6 + Chrome 68.0.3440.106, I'm seeing this:
I can't remember if this was an issue in older versions of the sim before @jessegreenberg implemented ffcefb6.
The text was updated successfully, but these errors were encountered: