• Editor
  • Emission Map / Normal Map linked images to existing images

Hi!

I don't know if this is already possible, otherwise put it on my wish list! Is it possible to have images have a linked/or secondary image (a normal map/emission map)? And when I hit export in Spine it creates two/three sprite sheets for each map. The benefit would be that each sprite sheet /map match.
Why: If I add skins in Spine, e.g a weapon, and then export to Unity, my sprite sheet is now different, and doesn't match with the maps I made in for e.g photoshop.

Let me know if I missed something, or if there's already a super easy way... Appreciated!

Related Discussions
...

Sorry for the late response!

You could create individual images for your attachments and pack them with the same settings (whether in the same atlas or separately). 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. These images were packed like that:
spine-runtimes/spineboy-old-diffuse.png at 3.8
spine-runtimes/spineboy-old-normal.png at 3.8

Nate a écrit

Sorry for the late response!

You could create individual images for your attachments and pack them with the same settings (whether in the same atlas or separately). 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. These images were packed like that:
spine-runtimes/spineboy-old-diffuse.png at 3.8
spine-runtimes/spineboy-old-normal.png at 3.8

Better late than never! Awesome, thank you :beer: :bananatime:

Edit: Maybe a dumb question, but how do I export so that the maps and the diffuse export to separate images and not a bundle?

If you put them in separate folders then they'll be packed into separate atlas page images (unless you use the "combine subdirectories" setting). See here:
Texture Packing - Spine User Guide: Folder structure

There are other texture packing tools that are dedicated to that task and have more features than what Spine provides, eg:
https://www.codeandweb.com/texturepacker
That might be worth looking at. They also have a tool for generating normal maps:
https://www.codeandweb.com/spriteilluminator
It looks neat, though I've never used it myself.

Nate a écrit

If you put them in separate folders then they'll be packed into separate atlas page images (unless you use the "combine subdirectories" setting). See here:
Texture Packing - Spine User Guide: Folder structure

There are other texture packing tools that are dedicated to that task and have more features than what Spine provides, eg:
https://www.codeandweb.com/texturepacker
That might be worth looking at. They also have a tool for generating normal maps:
https://www.codeandweb.com/spriteilluminator
It looks neat, though I've never used it myself.

Just what I was looking for, will definitely check them out, cheers Nate!