phetsims / color-vision

"Color Vision" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/color-vision
GNU General Public License v3.0
1 stars 7 forks source link

OSX Firefox Flickering on Single Bulb Screen #66

Closed arouinfar closed 10 years ago

arouinfar commented 10 years ago

It's possible that this is related to issue #42.

Test device: MacBook Pro

Operating System: OSX 10.9.4

Browser: Firefox 31.0

Problem description: There is a quick flicker that happens in the thought bubble after adjusting the bulb color between the extremes in the continuous beam mode and then quickly switching to the photon mode. This issue happens online, offline, and in the iframe.

Steps to reproduce:

  1. Start the sim
  2. Choose Single Bulb
  3. Start the flashlight in continuous beam mode and then adjust the color back and forth to the extreme ends several times.
  4. After you stop sliding, QUICKLY click on the button to see the photon mode. There will be a quick flicker in the color of the thought bubble.

Severity: This seems more like a minor annoyance than anything serious. The flickering only occurs when quickly clicking the photon mode after you stop sliding the bulb color.

Screenshots: It happens so quickly I can't manage to take a screenshot.

Troubleshooting information (do not edit): Name: Color Vision URL: file:///Users/rouinfar/Desktop/Color%20Vision%201.0.0-rc.1.html Version: 1.0.0-rc.1 Features missing: touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0 Language: en-US Window: 1216x734 Pixel Ratio: 2/1 WebGL: WebGL 1.0 GLSL: WebGL GLSL ES 1.0 Vendor: Mozilla (Mozilla) Vertex: attribs: 16 varying: 16 uniform: 1024 Texture: size: 4096 imageUnits: 16 (vertex: 16, combined: 16) Max viewport: 16384x16384 OES_texture_float: true

arouinfar commented 10 years ago

Reproduced on all platforms tested by AR in the testing matrix thus far.

aaronsamuel137 commented 10 years ago

This bug actually exists in the original Java version too. Its caused by the fact that the photon stream is supposed to take a second or so before the perceived color updates because the photons take time to move to the eye, whereas the beam should update the eye instantaneously. I'll look into how difficult this is to fix.

aaronsamuel137 commented 10 years ago

Its actually not clear that this is a "bug," because both beams are functioning as intended, its just that the fast transition between them generates this flicker as the remaining photons from the previous colors hit the eye.

I think it could be fixed pretty easily by making all of the photons change to the color of the beam when the beam view is engaged, but I'm not sure if that is what we want.

arouinfar commented 10 years ago

@patricialoeblein can you take a look at this?

This issue came up during the status meeting this morning, and we were wondering if you could share a situation in which the delay of the photons would be pedagogically useful. It was mentioned that you have explicitly used this feature in your classrooms, so your insights will be useful to us.

arouinfar commented 10 years ago

It was deciding in yesterday's design meeting that this was a non-issue.