• Editor
  • How to merge atlas

Related Discussions
...
godina kasnije

Nate Hi dudes
excuse me I still do not know how to set public atlas, do we have some tutorials ?
For exsample, I m going to make some trees and I have many tree stems and leaves tex, I hope that leaves tex will be set as a public atlas for all tree stems. So all of my trees can use the same leaves atlas

Pack a single atlas containing all of your images for multiple skeletons.

    suanLoBeach I'm afraid this question is a bit vague, so I'm not sure if this is the answer you're looking for. However, if you want to create texture packs for multiple Spine projects, you can do so using a script. The following export scripts may help:
    Blog: New export shell scripts

    That said, while I mentioned "at once," the packing itself is still done on a per-project basis. The script simply searches for the target Spine projects and packs each one it finds. In that sense, you cannot truly pack multiple projects simultaneously.

    Nonetheless, the script is quite useful, and we recommend it to all users. If you haven't tried it yet, I highly encourage you to give it a go.

      Misaki thanks lady.
      I don't wanna pack many project, I just want to let my trees use the same leaf atlas texture. but now every tree exported have themself 's leaf atlas. I want my trees use the same leaf texture. they only have different stems

      What I mean is that when I export the first tree, the texture contains the leaves, but when I export the second tree, the texture also has the leaves, but these leaves are the same, so the performance is wasted. What I want to ask now is how to make all trees use the same leaf texture

      Please read the documentation here:
      https://esotericsoftware.com/spine-texture-packer

      suanLoBeach I can pack many project at once ?

      There are 2 ways to pack, see the documentation above. Packing as part of data export is for convenience only. Otherwise you pack a folder containing images, not projects. So, pack a folder containing all your images. If you don't have such a folder, write a script that copies files around until you do. This is the same advice I gave you above.

        Nate I'm going to create a public spine project to pack public texture and export it as a public atlas texture, so is this way correctly ?

        I don't understand what you mean by "public"?

        You are asking if creating a Spine project and packing it is correct? That greatly depends on your goals.

        I suggest: Create as many projects as you want and export them as data, without packing an atlas. Collect all their images into one folder and run the texture packer to pack them all into one atlas.

          Nate In this case, do I need to run the texture packer first? Then use the packed texture to make different spine characters?

          What I actually want to know is how can I make one spine character use a part of the atlas texture of another spine character, for example, I want character 2 to use character 1's hat, but I don't want this hat to appear in character 2's atlas, because it wastes performance, and I want all hats to be rendered only once.

          You should try achieving what you want and see how it goes. Doing that will answer most of your questions.

          You never use an atlas in the Spine editor. Atlases are for runtime.

          Images are found by name in the editor:
          https://esotericsoftware.com/spine-images#Image-file-lookup

          They are also found by name in an atlas at runtime. Multiple skeletons can use the same atlas, as long as it contains the regions (by name) that the skeleton needs.

            Nate I now package the maps that need to be used in common into several shared textures, and then use them in different spine projects, but there is a question, can spine set different material slots? I want the same Spine Mecanim GameObject to have different material slots. I need to give a single spine character different materials.

            Nate thank you for your reply and we can close the quastion or issue, I get the correctly mothed and I know I don't need the public texture 😅