Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MayankDhankhar opened this issue Dec 28, 2023 · 7 comments

Comments

@MayankDhankhar
Copy link

MayankDhankhar commented Dec 28, 2023

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
Copy link
Author

@miltoncandelero please share your inputs too.

@miltoncandelero
Copy link
Contributor

miltoncandelero commented Dec 29, 2023

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
Copy link
Author

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
Copy link
Author

@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
Copy link
Contributor

@MayankDhankhar
Copy link
Author

MayankDhankhar commented Jan 2, 2024

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
Copy link
Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants