pixijs / spine

Pixi.js plugin that enables Spine support.
Other
564 stars 217 forks source link

Background completely black #414

Open nthnmillar opened 2 years ago

nthnmillar commented 2 years ago

I managed to get a spine animation playing with pixi-spine but the canvas background is completely black, though the source image is a png. It maybe a newbie question, but how can I make the background transparent. The pixi-spine examples I've seen in the below link also have completely black backgrounds, and I can't seem to find methods to clear the background:

https://pixijs.io/examples/#/plugin-spine/dragon.js

Is there a way to achieve transparent backgrounds or is it not supported?

ivanpopelyshev commented 2 years ago

Look at the second demo in the list: https://pixijs.io/examples/#/demos-basic/transparent-background.js

Next time, if its not related to spine, please report to https://github.com/pixijs/pixijs/discussions :)

nthnmillar commented 2 years ago

Thanks for answering so promptly, I must have overlooked new PIXI.Application({ transparent: true }) which has now made the background transparent