• Editor
  • Texture atlas

Hello,

Is there any way to rearrange the texture atlas elements?
At this moment you have a high chance to end up with 2 or more files containing the information, and i would like to have it done in a more game-friendly mode and pack all the texture into one single atlas.

I would suggest the next big feature Spine should have is a visual atlas editor, where we can position all the stuff we want without the concern of having multiple files and more issues using it in game engines. You know, something similar to what 3D softwares have like UVMapping. :wounded:

Related Discussions
...

It would be very time consuming to manually place atlas regions. Better to let Spine do it automatically. If your images don't fit in a single atlas page image, I'm not sure how you would still somehow fit them into a single page.

You can use folders to control which images are placed together on an atlas page image:
Texture Packing - Spine User Guide: Folder structure

Hello Nate

Nate :

It would be very time consuming to manually place atlas regions.

I would say that is totally subjective, artists are already spending way more time UVMapping in 3D, rearranging the regions wouldn't be a big deal as long as the images stay bound to the meshes.

Nate :

Better to let Spine do it automatically

I would have no problem with that if spine managed to fit everything into a power of 2 canvas, currently it doesn't.

Nate :

If your images don't fit in a single atlas page image, I'm not sure how you would still somehow fit them into a single page.

In photoshop, in the same square canvas, they all fit without having to rescale any element, the key part is to rotate some elements and make them fit.

Nate :

You can use folders to control which images are placed together on an atlas page image:

While that is useful for multiple characters in the same scene, it is not that great for single characters with a lot of elements, like weapons, clothes, hair etc.

I know what i'm proposing sounds like madness in terms of development on your end, but just as i've proposed the graph editor years ago, i believe it is an essential for videogames development and a proper pipilne. If i would have to use Spine just for video output, i would be fine with it, but 2 atlases for the same model is something most games don't really swallow.

I hope you understand my concerns.

Regards,

  • CJ

Spine can rotate images 0 or 90 degrees when packing rectangles or 0, 90, 180, or 270 degrees when packing polygons. Do you have the Rotate setting checked?

Did you try packing polygons? Doing that and making attachments meshes where they can be smaller can help.

If you can send your images, we can look at why the packer doesn't fit them on one page. <removed>

We don't have plans to make a manual texture packing user interface, sorry. The texture atlas format is quite simple though, it could be edited by hand. You could also try an alternate texture packer, like Texture Packer Pro.