- Editado
different sizes of atlas with the same package of sprites
Hi ! I have a little problem with exporting atlases from spine. Situation looks like that: I have two folders first one named D3 second D3_normals. Both have inside the same skin package of sprites and with the same names. When i try export both of them, atlases have all of sprites of course but in different positions. Is there a way to ensure that both atlases keep exact same positions? (folder D3 is attachment to skin, D3_normlas is not.)
Spine's texture packing is deterministic
if you don't use settings that change the size of the images (whitespace stripping or alpha threshold) then using the same setting with different images of the same size will place the regions in the atlas pages at the same positions.
hmm... early I thought that I have different image dimensions(px) but they're not. But they have only different weights (and colors ) It's possible the weight are the problem?
vs
.
They all have the same names and there is exactly the same amount of them.
Maybe I will tell you what's going on here. I tried to do some normals maps on elements and just export them as the second sprites exactly like my character skin but It didn't work as I thought.
Is there a better way to do normals maps for skin?
Can you show your packing settings? If you use whitespace stripping or alpha threshold then the texture regions in the atlas pages may not be the same size.
These images were packed like you describe:
spine-runtimes/spineboy-old-diffuse.png at 3.8
spine-runtimes/spineboy-old-normal.png at 3.8
It can work as you want with the Spine texture packer, but you could also use some other packing tool, such as Texture Packer Pro. Spine's packer has a fair amount of settings, but Spine also does a lot of other things. A tool like TPPro that is dedicated only to texture packing will have more features.