-
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
Steam does not animate when advanced from pause #190
Comments
Ooh nice, that's a problem! I'll investigate. |
Also seems to happen on second screen when heating the water |
Much less noticeable, but the water from the faucet, and more noticeable the teapot cloud. |
I think these were all animations that originally didn't stop animating when the sim was paused, so I didn't remember to add a way to step them once the sim was in a paused state. |
Certainly would be nice to fix, but also not a showstopper for 1.0 since I doubt it would cause major pedagogical issues. |
I would argue that this was pretty problematic, at least for the water faucet and the tea kettle, since you can turn those elements off while the sim is paused and the energy/energy chunk emission will update accordingly while manually stepping, but the corresponding steam and falling water would remain unchanged. Regardless, all of the cases that @KatieWoe mentioned have been fixed. I split up the view step method in the same way that they are arranged in the model, and then added an emitter in the model's @KatieWoe please review on master. |
Looks good on master @chrisklus |
For phetsims/qa#268. Minor update. I saw that the smoke animates as you start dragging the beaker around. This is a very minor thing. |
@KatieWoe that is wild! /**
* step this view element, called by the framework
* @param dt - time step, in seconds
* @public
*/
step: function( dt ) {
if ( this.model.isPlayingProperty.get() ) {
this.stepView( dt );
console.log( 'sim is playing');
}
}, This is how we're stepping view-only things like the steam. The isPlaying guard is working correctly, so when the sim is paused, the console stops logging 'sim is playing', regardless of whether the beaker is being dragged or not. I tried this log statement at every step along the way until the steam itself ( I'm hoping @jonathanolson has some insight as to why this could happen. |
Update: I committed a quick hack that prevents the steam from animating when the sim is paused and the beakers are being dragged, but You can't pass in args to |
@jbphet thought it was normal behavior for |
The current behavior looks good, but the setting of |
Thanks @jbphet. Updated, closing. |
Test device:
Dell
Operating System:
Win 10
Browser:
chrome
Problem description:
For phetsims/qa#263. Graphical oddity, likely very minor.
When the sim is playing, steam animates upwards. However, if pause and moving forward frame by frame, the steam stays completely in place. Other objects such as energy chunks and falling objects move, but not the steam. The steam stay even if the beaker cools during this advancement.
Steps to reproduce:
Screenshots:
Troubleshooting information (do not edit):
Name: Energy Forms And Changes
URL: https://phet-dev.colorado.edu/html/energy-forms-and-changes/1.0.0-dev.16/phet/energy-forms-and-changes_en_phet.html
Version: 1.0.0-dev.16 2019-01-18 17:19:03 UTC
Features missing: touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Language: en-US
Window: 1536x732
Pixel Ratio: 2.5/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4096
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 16384x16384
OES_texture_float: true
Dependencies JSON: {}
The text was updated successfully, but these errors were encountered: