spine icon indicating copy to clipboard operation
spine copied to clipboard

Background completely black

Open nthnmillar opened this issue 3 years ago • 2 comments

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?

nthnmillar avatar Nov 08 '21 08:11 nthnmillar

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 :)

ivanpopelyshev avatar Nov 08 '21 08:11 ivanpopelyshev

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

nthnmillar avatar Nov 08 '21 22:11 nthnmillar