phetsims / capacitor-lab-basics

"Capacitor Lab: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Maybe have Pause and Step Forward buttons as well as plate size and distance arrows visible through light? #276

Closed loganbraywork closed 3 years ago

loganbraywork commented 4 years ago

For https://github.com/phetsims/QA/issues/565

While checking another issue, I noticed it is difficult to adjust the plate size and distance as well as pause, unpause, or stepforward while the light is shining. Some arrows are visible through light but are not the ones which can be manipulated.

Currently how the screen looks while paused and the light is shining.

2020-10-16CapacitorlabbasicsLightOverArrows

Denz1994 commented 4 years ago

I agree we should be consistent with the arrow layering. @arouinfar Do you think we should have all the arrows behind the light or in front of the light? I personally think the light should be blocking the arrows. Almost as if the user is blinded by the light and can't see the arrows behind it.

arouinfar commented 4 years ago

I think this should be addressed by reducing the maximum halo size in #275.

@Denz1994 I think it looks strange to have mixed layering. Let's put the light on top of everything. I think they only z-order you'll need to adjust is the current arrows.

KatieWoe commented 4 years ago

I was writing this up as a bug since it makes using the sim difficult. Problem description For https://github.com/phetsims/QA/issues/565. Mentioned in https://github.com/phetsims/capacitor-lab-basics/issues/256. Related to and possibly caused by changes in https://github.com/phetsims/capacitor-lab-basics/issues/270. On the Light Bulb screen, if the light from the bulb is big enough, it covers the play/pause, step forward, and speed control buttons. This makes using the controls in fairly normal circumstances difficult. lightlayer

Denz1994 commented 4 years ago

Seems like @KatieWoe is advocating for the light being behind interactable items. I didn't think about the paused state, but I must admit it does get annoying to have to "feel" around for the step button when the light blocks the play/pause panel.

Maybe move the current direction arrows behind the light and the play/pause button in front of it @arouinfar?

EDIT: After reducing the bulb brightness in https://github.com/phetsims/capacitor-lab-basics/commit/3e93e2c14fc9aa35b6164cdf13e07aa5e35c5bed, the play/pause panel is no longer blocked. It is partially covered but still usable.

Denz1994 commented 4 years ago

The rendering order of the lightbulb and current arrows has been changed. The arrows are now always behind the lightbulb halos. Will deploy an RC version for verification.

DevonQui commented 3 years ago

The problem has definitely improved though I did find a case where the light will still be too bright to see the pause and play buttons. I think it's a pretty rare case to run into unless you're really trying to play with every button in the simulation but I thought it was important to note nonetheless.[

Screen Shot 2020-12-17 at 2 26 11 PM

](url)

brooklynlash commented 3 years ago

I noticed this as well, and only occurs when the separation is low and the plate area is high when originally charging the capacitor, then taking it off the voltage and increasing separation/decreasing plate area. You cannot make it so the light is covering the pause/step forward buttons with the original charge without changing the plates.

KatieWoe commented 3 years ago

I made a gif of how this can be fairly easily achieved. Fully charge the plates when they are large and close together. Disconnect the plates but don't connect them to the light bulb. Make the plates small and far apart. Pause the sim. Connect them to the light bulb. howtocoverbuttons Edit: I'm also still wondering about the plate size and distance arrows, but I'm not as worried about those.

arouinfar commented 3 years ago

@Denz1994 let's move the panel containing the TimeControlNode on top of the halo. This z-ordering would be consistent with the other panels in the sim.

jonathanolson commented 3 years ago

I believe I've fixed this in master, can you check? (Not committed to 1.7)

brooklynlash commented 3 years ago

I was trying to replicate https://github.com/phetsims/capacitor-lab-basics/issues/276#issuecomment-760452899 but ran into another problem, when I change the separation or plate size at all, the energy disappears. @arouinfar is this intended? capacitorenergy

jonathanolson commented 3 years ago

I discovered this and reported in https://github.com/phetsims/capacitor-lab-basics/issues/282.

I'll investigate

arouinfar commented 3 years ago

@jonathanolson looks good in master, back to you in case we end up needing to cherry-pick into 1.7.

KatieWoe commented 3 years ago

Looks like this in https://github.com/phetsims/QA/issues/616:

looksindev

@arouinfar I think this can be closed?

arouinfar commented 3 years ago

Since we decided to republish off of master, there shouldn't be anything to cherry-pick, closing.