Shinhu

I downloaded atlas unpacker from this link, because i just started spine and i'm using trial version.

http://n4te.com/x/1792-unpacker.jar
(if i recall correctly this is gdx-tools from libgdx)

And when i tried to unpack the packed texture with this tool and the atlas file that are for packed textures i got, it successfully unpack every texture into png files, with corresponding file directory.

Inside my atlas file the first 10 lines can be summarized like,
packed_texture.png
size: 4096,4096
format: RGBA8888
filter: Linear,Linear
repeat: none
human/ear
rotate: false
xy: 2748, 1768
size: 80, 124
orig: 80, 124
offset: 0, 0
index: -1
human/eye
rotate: false
xy: 1444, 3718
size: 194, 59
orig: 194, 59
offset: 0, 0
index: -1
When I unpacked the texture, textures are saved in new folders just fine.
for instance of above atlas file,
ear is saved in (atlas file directory)/human/ear.png
eye is saved in (atlas file directory)/human/eye.png

But i expected the tool to make new atlas file for those lots of unpacked textures, which it didn't.

When I opened the json file again, it won't load the skins because it doesn't have corresponding atlas file for unpacked ones.

In above example, i'm expecting the tool to genereate new atlas like this : (i wrote below one manually just to describe, so this could be wrong in syntax, but you will get what i mean)
human/ear.png
size: 80, 124
format: RGBA8888
filter: Linear,Linear
repeat: none
human/ear
rotate: false
size: 80, 124
orig: 80, 124
offset: 0, 0
index: -1

human/eye.png
size: 194, 59
format: RGBA8888
filter: Linear,Linear
repeat: none
human/eye
rotate: false
size: 194, 59
orig: 194, 59
offset: 0, 0
index: -1
The reason why i'm trying to unpack the packed texture is that, the texture and json and atlas file i got is exported without checking 'include nonessential', so when i import the data, it doesn't show textures, with error 'nonessential unchecked when exporting'.

I think generating new atlas file based on unpacked files will solve this, but i think there could be various solutions to this too.

so my question is, How do i get new atlas file based on unpacked atlas file?

Again, I'm using Spine Trial version, so any premium feature isn't available to me.

Please help me solving this problem.

Thanks in advance.
Shinhu
  • Mensajes: 10

Erika

Hello, the nonessential data being unchecked means that the json file, and not the atlas, is missing information that could have been used in the editor.
Unpacking the atlas into separate images makes them available to be used in the Spine editor, no repacking is necessary. The data lost from the json can only be retrieved from the original Spine project file though.
Sometimes projects can still be recreated in Spine with just the json and the exported files, especially if the original images already had images trimmed when imported in Spine the first time. When this is not the case, the meshes may look weird, but they can be manually edited to fit the art again if necessary.
Avatar de Usuario
Erika

Erikari
  • Mensajes: 2605

Nate

As Erika mentioned, the missing images are not because of the nonessential warning, it's just that you need to set the images path:
Images - Spine User Guide: Images node
Avatar de Usuario
Nate

Nate
  • Mensajes: 10063

Shinhu

problem is solved! Thanks!
Shinhu
  • Mensajes: 10


Volver a Editor