spine icon indicating copy to clipboard operation
spine copied to clipboard

Possible to create Pixi.spine without atlas in pixi.js version 7.3 and pixi-spine version 4.0.4 ?

Open MayankDhankhar opened this issue 1 year ago • 7 comments

Is it possible to load spine from :

  1. .json (spine)
  2. no .atlas
  3. individual images instead of spriteSheet whose description in skins of spine .

@ivanpopelyshev Hello Ivan, Your inputs on the same is highly appreciated. Thanks.

### Tasks
### Tasks

MayankDhankhar avatar Dec 28 '23 15:12 MayankDhankhar

@miltoncandelero please share your inputs too.

MayankDhankhar avatar Dec 28 '23 15:12 MayankDhankhar

I believe it is possible, but I can't remember exactly how and I no longer use this version of the plugin, so I don't know 😬 (and even when I did use it, I didn't use that feature in particular)

It had to do with the metadata you add to the spine json during load, but I can't remember the exact shape of said metadata

miltoncandelero avatar Dec 29 '23 02:12 miltoncandelero

I believe it is possible, but I can't remember exactly how and I no longer use this version of the plugin, so I don't know 😬 (and even when I did use it, I didn't use that feature in particular)

It had to do with the metadata you add to the spine json during load, but I can't remember the exact shape of said metadata

Ok, well no problem, Thanks for your inputs.

MayankDhankhar avatar Jan 01 '24 08:01 MayankDhankhar

@ivanpopelyshev - Do you know how to do it or the exact syntax for the metadata with what information to be sent to achieve the same what @miltoncandelero suggested above ?

MayankDhankhar avatar Jan 01 '24 08:01 MayankDhankhar

Have you considered reading the comments on the loader?

https://github.com/pixijs/spine/blob/master/packages%2Floader-base%2Fsrc%2FSpineLoaderAbstract.ts#L164

miltoncandelero avatar Jan 01 '24 16:01 miltoncandelero

Have you considered reading the comments on the loader?

https://github.com/pixijs/spine/blob/master/packages%2Floader-base%2Fsrc%2FSpineLoaderAbstract.ts#L164

Yes Sir, reading that helps but what i am trying to achieve is exactly in the link below but for pixi.js version 7.3.x and pixi-spine version 4.0.4 : https://github.com/pixijs/spine/blob/master/examples/dynamic_texture_atlas.md

MayankDhankhar avatar Jan 02 '24 08:01 MayankDhankhar

I am able to achieve this but with the cost of extra fetch call to get data for creating texture atlas dynamically and then normally loading spine with dynamic atlas passed as metadata. @miltoncandelero - Is there a better way of doing it, without making extra fetch call for getting json data to create texture atlas ?

MayankDhankhar avatar Jan 12 '24 11:01 MayankDhankhar