spine icon indicating copy to clipboard operation
spine copied to clipboard

.webp extension artifacts

Open Technostalgic opened this issue 2 years ago • 3 comments

image

These blocky artifacts appear around partially transparent parts of the image when I use .webp as an export format with spine. It works fine with .png, the artifacts do not appear. I know the issue is not with the image itself, as I can render the same .webp image as a PIXI.Sprite and it does not show any artifacts like above.

Spine initialization code is simple, I am not changing any render settings or anything. Just the scale and position:

let bgWaveSpine = new SPINE.Spine(EnvironmentRenderer.spData_backroundAnim);
bgWaveSpine.position.copyFrom(bgAnchor.toGlobal({x: 0.474, y: 0.15}));
bgWaveSpine.scale.set(bgSprite.scale.x / (854 / bgSprite.texture.width));
bgWaveSpine.state.setAnimation(0, "background_animation", true);
this.renderContainer.addChild(bgWaveSpine);

Any idea what could be causing this?

Technostalgic avatar Dec 02 '22 01:12 Technostalgic

Did you manage to find a solution to this? Having the same issue?

wpitallo avatar Dec 08 '23 10:12 wpitallo

Did you manage to find a solution to this? Having the same issue?

unfortunately I never found a fix for it. I was forced to use PNG export format

Technostalgic avatar Dec 08 '23 23:12 Technostalgic

The problem seems to be resolved by disabling the "premultiply alpha" option when packaging the atlas from spine.

Corginyan avatar Feb 06 '24 18:02 Corginyan