Skip to content
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

avm2: Implement Matrix3D with 2D support only #18888

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cookie-s
Copy link
Contributor

@cookie-s cookie-s commented Dec 7, 2024

Retry #18810 .
Partially resolves #8033 .

#18810 (comment)

To be merged again, it will need a test + the patch posted by me above + 2D/3D switch

Commits

@cookie-s cookie-s force-pushed the matrix3d-transformation-with-2d-only branch from 7473740 to ac547ca Compare December 7, 2024 00:35
@cookie-s cookie-s changed the title Matrix3d transformation with 2d only avm2: Implement Matrix3D with 2D support only Dec 7, 2024
@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player labels Dec 7, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log is taken from Adobe Flash Player 32.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I obtained this PNG file by mv output.actual*.png output.expected.png, after verifying FP shows the very similar image by my eyes. Is that sufficient or is there a way to get screenshot directly from FP?

@cookie-s cookie-s marked this pull request as ready for review December 7, 2024 01:03
@cookie-s cookie-s force-pushed the matrix3d-transformation-with-2d-only branch from ac547ca to 69f6554 Compare December 10, 2024 01:37
@cookie-s
Copy link
Contributor Author

#18908 produced Git conflict with this PR and it actually implemented a kind of "2D/3D switch" inside DisplayObject. Rebased and followed its design now.

@cookie-s cookie-s force-pushed the matrix3d-transformation-with-2d-only branch from 69f6554 to 34bcfae Compare December 10, 2024 01:40
Replace stubs for flash.geom.Transform.matrix3D getter/setter with an
actual implementation of Matrix3D with limited support.

This implementation is just a proxy to the existing 2D matrix
implementation. Therefore transformations beyond 2D transformation works
differently from the expected result.
@cookie-s cookie-s force-pushed the matrix3d-transformation-with-2d-only branch from 34bcfae to a3a3018 Compare December 13, 2024 23:51
@cookie-s cookie-s force-pushed the matrix3d-transformation-with-2d-only branch from a3a3018 to 6417e5f Compare December 14, 2024 00:00
@cookie-s
Copy link
Contributor Author

Rebased. Thanks to #18911 , this PR gets much slim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants