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

Atlas spritesheets (Converter tool & pixi.js Loader) #228

Closed
MKelm opened this issue Jul 27, 2013 · 9 comments
Closed

Atlas spritesheets (Converter tool & pixi.js Loader) #228

MKelm opened this issue Jul 27, 2013 · 9 comments
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim

Comments

@MKelm
Copy link

MKelm commented Jul 27, 2013

I launched spine and detected that it creates altas files for sprite sheets, which are not supported by pixi.js currently.

I have written a tool the last night to convert atlas files to Texture Packer compatible JSON files.
http://my.shrt.ws/mct/base/tools/atlastojson.html
You have to set the spritesheet image size first. After that you can paste the atlas file content into the upper textarea.

The source file is located here: https://github.com/MKelm/mct/blob/master/lib/base/tools/atlastojson.html
A pixi.js demo made with converted data is here: http://my.shrt.ws/mct/spine/space/test.html

Update: I am working on an atlas parser currently, see posts below ...

@MKelm
Copy link
Author

MKelm commented Jul 27, 2013

[edit: fixed]

@MKelm
Copy link
Author

MKelm commented Jul 28, 2013

Esoteric software had requested my project files for debugging and I asked if they can say something about my converter problem or if they plan to integrate a json export for spritesheet data, ...

@MKelm
Copy link
Author

MKelm commented Jul 30, 2013

Esoteric software released a patch to avoid crashes if an image file will be generated inside the source images folder.

And my atlastojson tool works now!!! The last frame was missing.
Here is the test success http://my.shrt.ws/mct/spine/space/test.html

I am going to animate some birds now :)

@MKelm
Copy link
Author

MKelm commented Jul 30, 2013

Update, new feature, my tool can read the size of an spritesheet image by an external source (url or local url) or if the image is inside the tool folder. I will have a look at the pixi.js loaders now ...

@MKelm
Copy link
Author

MKelm commented Jul 30, 2013

Here is my first pixi.js loader version for atlas files
http://s14.directupload.net/images/130730/yy5ck5pv.png

It works fine, but rotated images are not supported yet as you can see :)
If you use exports without rotation that is no problem!

How can I rotate textures?

@MKelm
Copy link
Author

MKelm commented Jul 31, 2013

Trimmed textures does not work in pixi yet, right?

@MKelm
Copy link
Author

MKelm commented Dec 14, 2013

Closing issue, PR exists

@MKelm MKelm closed this as completed Dec 14, 2013
@AndreiBarsan
Copy link

Hello, sorry to re-open this issue, but it seems that the converter doesn't work. Whenever I paste my atlas file nothing seems to happen - all I get is the following error in the js console: TypeError: frames[i].position is undefined (line 158).

@lock
Copy link

lock bot commented Feb 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim
Projects
None yet
Development

No branches or pull requests

2 participants