phetsims / charges-and-fields

"Charges And Fields" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
9 stars 7 forks source link

Voltage map doesn't zoom with zoom feature #188

Open jessegreenberg opened 3 years ago

jessegreenberg commented 3 years ago

Noticed after https://github.com/phetsims/joist/issues/657. Zoom feature is working pretty well but I noticed that the heated map shown when the "Voltage" checkbox is selected does not zoom with the rest of the sim.

jessegreenberg commented 3 years ago

Similar behavior to https://github.com/phetsims/buoyancy/issues/6. That sim is using mobius, while this sim is using WebGLNode.

https://github.com/phetsims/joist/issues/659

jessegreenberg commented 3 years ago

We found that it is likely an issue with the usage of WebGLNode in the sim. Using modelViewMatrix in ElectricPotentialWebGLNode.paint may resolve the issue(among other things).

ariel-phet commented 3 years ago

This would be a good feature to have if this sim is republished at some point, but no need to work on this feature proactively