Skip to content

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Sep 15, 2025

@kjarosh kjarosh added A-rendering Area: Rendering & Graphics T-compat Type: Compatibility with Flash Player labels Sep 15, 2025
@kjarosh
Copy link
Member Author

kjarosh commented Sep 15, 2025

Note that this PR fixes #12202 in terms of rendering filters, but breaks it in terms of scaling/positioning the bitmap.

I suspect this is an unrelated CAB bug, but I want to make sure (or even fix it) before merging this one.

@kjarosh
Copy link
Member Author

kjarosh commented Sep 15, 2025

Also, I have no idea what's up with avm2/away3d_advanced_shallow_water_demo, but its output is not from Flash anyway, and I can imagine CAB changed something (introduced a one-frame delay, or something).

@Lord-McSweeney
Copy link
Collaborator

This should also fix #15107

@kjarosh
Copy link
Member Author

kjarosh commented Sep 19, 2025

Note that this PR fixes #12202 in terms of rendering filters, but breaks it in terms of scaling/positioning the bitmap.

I suspect this is an unrelated CAB bug, but I want to make sure (or even fix it) before merging this one.

It's unrelated to this PR, it's even not related to CAB, fixed by #21698.

@kjarosh kjarosh force-pushed the bitmapdata-draw-cab branch from 52fc5fe to b2bc502 Compare September 19, 2025 20:43
@kjarosh kjarosh added waiting-on-review Waiting on review from a Ruffle team member and removed waiting-on-author Waiting on the PR author to make the requested changes labels Sep 19, 2025
@hamzaelbarmaki1994
Copy link

hamzaelbarmaki1994 commented Sep 20, 2025

will this PR resolve #21509 ?

@kjarosh
Copy link
Member Author

kjarosh commented Sep 20, 2025

This actually breaks drawWithQuality. Will have to look into it

@kjarosh kjarosh added waiting-on-author Waiting on the PR author to make the requested changes and removed waiting-on-review Waiting on review from a Ruffle team member labels Sep 20, 2025
This patch adds support for CAB rendering in `BitmapData.draw` which
fixes missing filters. Currently it supports CAB rendering only with the
same quality due to how CAB is being implemented. In the future we
should also support CAB rendering with different qualities.
@kjarosh kjarosh force-pushed the bitmapdata-draw-cab branch from b2bc502 to c08bd27 Compare October 11, 2025 17:42
@kjarosh
Copy link
Member Author

kjarosh commented Oct 11, 2025

Constrained CAB rendering for the same quality only, this should fix the majority of content. We can implement CAB rendering for different qualities in the future.

@kjarosh kjarosh added waiting-on-review Waiting on review from a Ruffle team member and removed waiting-on-author Waiting on the PR author to make the requested changes labels Oct 11, 2025
Copy link
Contributor

@Dinnerbone Dinnerbone left a comment

Choose a reason for hiding this comment

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

The code LGTM but we need to figure out what's up with away3d_advanced_shallow_water_demo - it's failing the test now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rendering Area: Rendering & Graphics newsworthy T-compat Type: Compatibility with Flash Player waiting-on-review Waiting on review from a Ruffle team member

Projects

None yet

5 participants