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

Spine and texturePacker have different rotations #1

Open
ivanpopelyshev opened this issue Feb 1, 2016 · 8 comments
Open

Spine and texturePacker have different rotations #1

ivanpopelyshev opened this issue Feb 1, 2016 · 8 comments

Comments

@ivanpopelyshev
Copy link

You know about subj., right?

@alaa-eddine
Copy link
Contributor

@ivanpopelyshev Sorry I don't understand what you mean :)
Can you explain please ?

@ivanpopelyshev
Copy link
Author

@alaa-eddine spine rotates regions clockwise, while texturepacker counter-clockwise. Its not possible to make correct json from atlas if there are rotated regions.

@ivanpopelyshev
Copy link
Author

That's why this PR was made: pixijs/pixijs#2237

However, if we store numbers instead of bools, last version of pixi will handle it: http://ivanpopelyshev.github.io/examples/index.html?s=demos&f=texture-rotate.js&title=Texture%20Rotate

I can make PR.

@alaa-eddine
Copy link
Contributor

oh I get it now
Actually I didn't updated this package for a while, I wrote it for a specific need and decided to share it.
I no more use Spine with Pixi for now (coz of some limitations)

but if you can make a PR I'll merge it :)

@ivanpopelyshev
Copy link
Author

@alaa-eddine which limitations?

@alaa-eddine
Copy link
Contributor

for example, for one of my projects, I needed to create an animation with spine and be able to scale the skeleton and use a reduced image size with it.
There's maybe a solution, but I didn't found it. the only solution I had was to scale the whole animation but this gave very bad visual result (pixelated sprites due to downscaled textures) , also force the player to allways download the high resolution texture even if he only need a low-res.

(btw : I'm glad to see a Pixi contributor browsing my github repos :) )

@ivanpopelyshev
Copy link
Author

@alaa-eddine well it works now, pixi-compressed-textures together with pixi-spine can switch resolutions just fine :)

(im contributing into pixi only for 7 months, while you are really old user)

@alaa-eddine
Copy link
Contributor

seems interesting I'll give it a try :)

I sent you some message in twitter PM in response to your message on HTML5 forums

I was on mobile and it's simpler to use twitter than the forum on mobile phone :)

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