-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
avm1: Implement MovieClip.setMask - #17 #263 #1483
Conversation
👍 This also makes Bill The Demon playable |
Thank you and welcome! Some issues from me eyeballing it:
(Take this with a grain of salt because I haven't tested this yet! 😄 ) |
I think those first three issues should be fixed now, but I'll need someone else to do the testing for the last one |
Hm, that test.swf doesn't seem to be working for me (in either flash or ruffle), ruffle gives this error:
I think the problem is that I forgot to remove the maskee from the old masker when a new one is set, should be an easy fix. |
I think my file uploader got confused and linked to an old test for something else. Here's a zip: avm1_set_mask.zip I'll work on getting this test inside our visual test suite when this PR is ready to land! |
Thanks, fixed! |
I'm getting a crash in this old Mario game (web and desktop):
I don't know why it panicks but I can tell that without the latest commit (1c8ca7c), the game works as intended. |
I'm not sure why it was being triggered by that game in particular, but removing the redundant write to the maskee field of the new mask seems to have fixed it. |
👍 |
Thanks for your work on this!
|
Fixed these two issues:
Could use some testing on these fixes. This is still an issue but will take a little more work:
|
Holding off on this until #1347 is fixed, because it will probably change how masks are rendered a bit (i.e. the Re: the visibility checks, I think this should include both culling and checking |
Sorry for the delay on this one; I'll get back to this, clean up the masking code, and merge this in. |
Ok, rebased this into the latest changes. I still have to fix a few things with the masking in general, but I've been slow and I'd rather get this in now so it's not just sitting in the PR queue. Thanks for the patience and work, @davidar ! |
This fixes some (but not all) of the rendering bugs in #1098
@Dinnerbone offered to make some tests as I have no idea where to even start with that