- Изменено
Not all atlasses are getting exported
Hi, I have a strange issue with Spine 4.0.07.
While exporting my skeleton as a .json, not every image is added to the atlas. When imported to Unity, the texture is read wrong, and in the place of the missing attachment's image, I have random visuals from one of the atlas textures.
When using the texture packer, everything is exported properly, but I cannot "connect" it with my .json file.
Has anyone encountered the same issue? Any idea for a fix?
I used Spine 3.8 before and all was good, but now I saved the project, so there's no coming back sadly:\
I managed to export files in separate atlases, but it created 18 of them, which is not the best solution, but a very brute force workaround.
Pencileater написалWhile exporting my skeleton as a .json, not every image is added to the atlas.
You are most likely not using all images as attachments, please have a look at the documentation page here:
Texture packing - Spine User Guide: Packing during data export
Pencileater написалWhen imported to Unity, the texture is read wrong, and in the place of the missing attachment's image, I have random visuals from one of the atlas textures.
This should not be the case, unless you are using SkeletonGraphic
which requires Advanced - Multiple Canvas Renderers
enabled when using multiple atlas textures. Could you please send us the exported skeleton assets, either attach it to a posting on this thread or send it to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context.
I managed to export files in separate atlases, but it created 18 of them, which is not the best solution, but a very brute force workaround.
Perhaps you have set your max atlas width and height settings too low to include all images on a single page. Unfortunately we have a hard time guessing what your problem is without any details on your project setup.
https://drive.google.com/drive/folders/1-qb7t_b7iioBiZpyvMGYJRkm6LzIZCIV?usp=sharing
here's a link to the project files.
You are most likely not using all images as attachments, please have a look at the documentation page here:
Texture packing - Spine User Guide: Packing during data export
Unfortunately, that's not the case. The missing image is used in an attachment that is turned on.
Perhaps you have set your max atlas width and height settings too low to include all images on a single page. Unfortunately we have a hard time guessing what your problem is without any details on your project setup.
I even tried a single, 16k texture, but still, it didn't work. Hopefully, you'll find something in the project files.
Thanks for the reply!
Unfortunately we could not reproduce the problem you described with the default packing mode Rectangles
, as well as with Polygons
. Everything packed as expected, when setting max atlas resolution to 8k, it packed everything to two atlas page .png
files, when allowing for a resolution of 16000x16000 it packed everything on a single page. When setting a scale of 0.5 and max atlas resolution of 8k, it also fit everything on a single atlas page.
Are you sure you are using the latest Spine 4.0 version?
Harald написалUnfortunately we could not reproduce the problem you described with the default packing mode
Rectangles
, as well as withPolygons
. Everything packed as expected, when setting max atlas resolution to 8k, it packed everything to two atlas page.png
files, when allowing for a resolution of 16000x16000 it packed everything on a single page. When setting a scale of 0.5 and max atlas resolution of 8k, it also fit everything on a single atlas page.Are you sure you are using the latest Spine 4.0 version?
I'm working on 4.0.0.7. I'll try to record this, cause now it's extremely weird.