-
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
Pixelated wave #256
Comments
We use an optimization in LatticeCanvasNode that accelerates performance and makes iPad 2 usage possible (though not great) and gives great performance on iPad 4. The optimization is that the entire lattice is rendered as one cell = one pixel, then that is blown up. Perhaps changing to a WebGL renderer could offer more resolution without increasing CPU demands. It could take 4-12 hours to get a version ready for testing, but would be quicker to run a feasibility test. Note: we would not change the physics or increase the resolution of the model lattice at all, but we would interpolate cell values in the rendering phase on the GPU. I'm interested to see what this looks like, but will not spend a significant amount of time on it until discussing with @arouinfar @ariel-phet or @kathy-phet. |
@samreid that sounds worthy of investigation for 2.0, not for 1.0. Lets defer for the moment. |
@samreid @ariel-phet I haven't noticed too many pixelated situations like the one in #256 (comment), so it definitely seems reasonable to defer. |
I've noticed pixelation occuring sometimes too. It seems somewhat unpredictable, and I've seen it create some odd readings on the charting tool too. I think its worth investigating WebGL as an alternative, but agree it can be deferred to 2.0. |
The proposed usage of WebGL would only apply in the view layer--would not change the underlying model values or what is shown on the charts. Should we open another issue to investigate odd readings on the charting tool? |
Here's how the same scene looks after we increased the lattice size: @arouinfar does this look OK to you? Can this issue be closed? |
@samreid I think the increased lattice size adequately addresses the original issue. However, there should probably be a separate issue for WebGL investigation for 2.0, since I know it's come up a few times now. |
I reopened #66 and will close this particular issue. |
For phetsims/qa#238
Under some circumstances the waves can look rather pixelated. This seems to occur more when frequency is high and separation is small, but is noticeable in other circumstances as well.
The text was updated successfully, but these errors were encountered: