Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

The rendering in Phaser and Pixi appears differently. #2

Closed
peterlee-dev opened this issue Apr 19, 2024 · 10 comments
Closed

The rendering in Phaser and Pixi appears differently. #2

peterlee-dev opened this issue Apr 19, 2024 · 10 comments

Comments

@peterlee-dev
Copy link

스크린샷 2024-04-19 13 12 34
pixi
스크린샷 2024-04-19 13 12 45
phaser

In Phaser, the character's ears look smooth, but in Pixi, I noticed that there are lines appearing on the ears during rendering. What could be the issue?

@GoodBoyDigital
Copy link
Member

hey there! thanks for sharing, would you mind running this in the WebGL renderer pls? I think this may be a WebGPU alpha thing I need to look into!

@peterlee-dev
Copy link
Author

I checked the renderer of the app and found out that it's using WebGL instead of WebGPU.

@GoodBoyDigital
Copy link
Member

heya - i think this is a premultiplied alpha issue. if you can save out your images with non-pre-multiplied alpha. It should be a temporary fix!

@GoodBoyDigital
Copy link
Member

hey @peterlee-dev would you mind sending the animation across please? will try to take a look at that this week! Thanks!

@GoodBoyDigital
Copy link
Member

tbh - I probably only need the texture! could you post that here? thanks!
otherwise, we could chat on the discord?

@peterlee-dev
Copy link
Author

I have sent the problematic Spine file to [email protected]. I also tested it with version 2.0.2, but encountered errors. Thank you for your assistance.
Uncaught Error: String in string table must not be null. at SkeletonBinary.readSkeletonData (@pixi_spine-pixi.js?v=5b7827b7:8534:15) at _Spine.from (@pixi_spine-pixi.js?v=5b7827b7:12399:33) at main.ts:29:19

@peterlee-dev
Copy link
Author

It seems like the error is due to differences in Spine Editor versions.
There are no errors in Spine Core version 4.2.26.
However, the issue with the line being drawn is the same in previous versions as well.

@davidetan
Copy link
Contributor

As GoodBoyDigital mention in a previous post, this is a premultiplied alpha issue that are currently loaded without taking this into consideration.
This PR (#30) should address the problem.

However, you can export non premultiplied alpha textures as GoodBoyDigital suggested here:

if you can save out your images with non-pre-multiplied alpha. It should be a temporary fix!

@davidetan
Copy link
Contributor

The PR has been merged.
From Pixi v8.3.0 and the v2.0.3 of this library, pma loading is managed automatically.

@Zyie
Copy link
Member

Zyie commented Nov 20, 2024

Hi

We have now moved this project to the official Esoteric Software repo for them to maintain. As a result we will be archiving this repo and closing all issues. If you still are having this issue please feel free to open an issue over on the new repo!

As for migrating between the projects it should be as simple as swapping out the imports from @pxi/spine-pixi to @esotericsoftware/spine-pixi-v8

@Zyie Zyie closed this as completed Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants