- Uređeno
Spine still not exporting atlas correctly (probably)
Hello guys,
The programmer on my team tried loading a spine character in a test today, and It turns out we had very weird problems with the textures in Meshes. He tried making an atlas by himself using texture packer and the images I provided in Spine project and everything seemed to work fine, except for some problems with premultiplied alpha (texture packer here http://www.aurelienribon.com/blog/2012/06/texturepacker-gui-v3-0-0/ doesn't seem to have a premultiply alpha or bleed option).
Here are the two results:
The hand that holds the gun, the gun and the shoulders are no meshes, so they seem to work properly.
I think spine still does some weird stuff when exporting the meshes to the atlas since he's using the same painting code for both images. Also if somebody could suggest some way of premultiplying an image alpha in order to avoid these kind of problems it would be much apreciated .
You can't use whitespace stripping if you use meshes. Give that a try.
You are right Nate. Also, you can't use rotation either (the results are pretty funny though). It would be nice if spine warned you about this somehow when you are creating an atlas with a project that use meshes.
For those who are interested, the gui of the texture packer I posted above can't premultiply or bleed the image when packing them, so It won't work as the spine packer does (or any other professional image editing software like photoshop, wich always seem to bleed colors in alpha channels when using 16bits or more).
Thanks a lot Nate!
I'll see what I can do about a warning. Ideally whitespace stripping would still strip what it can and rotation would work, but there's too much to do at the moment.
Yeah, the GUI you linked uses my texture packer from libgdx. The guy who wrote the GUI hasn't kept it up to date. I don't maintain it because my packer was always intended to be a command line tool, it isn't supposed to have a GUI! It uses conventions and JSON files to make it easy to pack images for the whole app. There is only a GUI in Spine because people would complain. :p