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

Bug: V8 graphics tint applied in a weird way #10462

Closed
jakerdy opened this issue Apr 21, 2024 · 3 comments
Closed

Bug: V8 graphics tint applied in a weird way #10462

jakerdy opened this issue Apr 21, 2024 · 3 comments
Assignees
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.

Comments

@jakerdy
Copy link
Contributor

jakerdy commented Apr 21, 2024

Current Behavior

Hi, I finnaly decided to port my app to V8 and encounter couple problems.

First problem that I got, it's different tint behaviour on Graphics. In v7 tints applied via color multiplication. In v8 it works somehow differetly, which makes unpredictable results in most cases.

Here you could see this effect:
image

Is this some kind new feature that wasn't described in migration guide and changelogs, or it is a bug?

Expected Behavior

V8 Graphics tints should be multiplicative. If tint is black, graphics also should be black.

Steps to Reproduce

V8 playground: https://www.pixiplayground.com/#/edit/LLWPYftOAq044gn7sSoxV
V7 playground: https://www.pixiplayground.com/#/edit/IDHn7Kt2sVujHnXA512i4

Environment

  • pixi.js version: e.g. 8.1.0
  • Browser & Version: e.g. Chrome 124
  • OS & Version: e.g. Windows 10

Possible Solution

No response

Additional Information

No response

@jakerdy
Copy link
Contributor Author

jakerdy commented Apr 21, 2024

Actually, every single non white renderable ellement where tint was applied looks differently.

Here couple screens from my app:

Pixi v7.4.0:
v7

Pixi v8.1.0:
v8

Text movement is a second problem, I will report it as separate issue.

@bigtimebuddy bigtimebuddy added the 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. label Apr 21, 2024
@GoodBoyDigital
Copy link
Member

thanks for sharing @jakerdy ! will take a poke around

@GoodBoyDigital
Copy link
Member

definitely a bug! great catch! will post a fix up later today 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Projects
None yet
Development

No branches or pull requests

3 participants