pixijs / spine

Pixi.js plugin that enables Spine support.
Other
565 stars 218 forks source link

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

Open MayankDhankhar opened 9 months ago

MayankDhankhar commented 9 months ago

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 commented 9 months ago

@miltoncandelero please share your inputs too.

miltoncandelero commented 9 months ago

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

MayankDhankhar commented 9 months ago

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 commented 9 months ago

@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 ?

miltoncandelero commented 9 months ago

Have you considered reading the comments on the loader?

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

MayankDhankhar commented 9 months ago

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 commented 8 months ago

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 ?