vzlomvl

Hi Spine team. Do you have some plans or do you considering the support of Unity Sprite Atlas? I have seen [unity] Unity 2017.x Sprite Atlas Support · #940 but looks like development in this direction was stopped. Thanks.
User avatar
vzlomvl
  • Posts: 59

Harald

Hi!

Don't worry - it was just on-hold for some time in favor of important bugfixes and SpriteMask support, but will be picked up again rather soon. We are aiming to support the Unity feature set as much as possible, and development of SpriteMask support has just been completed - see this forum post here: SpriteMask support for all included shaders.

I will get back to you as soon as we are making some progress on the Sprite Atlas support.
User avatar
Harald

Harri
  • Posts: 1524

vzlomvl

Glad to hear it :party: . Thanks for the reply.
User avatar
vzlomvl
  • Posts: 59

Harald

You're welcome! :)
User avatar
Harald

Harri
  • Posts: 1524

kaarloew

Is there any timeline you could give to us? Ships in Q2 or Q3?
kaarloew
  • Posts: 20

Harald

I'm sorry that this feature has been delayed just before getting started, the Unity 2019 release caused some high-priority tasks to be inserted. Q3 should be reasonable.
User avatar
Harald

Harri
  • Posts: 1524

chase-cc

sorry to dig this up, gonna add some of my own observations.

i've gotten a customizable character working with spine, and the sprites are coming from SpriteAtlas and SpriteAtlas variants alright.

I've noticed a bug where spine isn't honoring the scale setting of the SpriteAtlas variant (was trying to make a low-res texture set for zoomed out views). it looks like spine is just grabbing the same coordinates from the atlas in absolute coordinates instead of some relative coordinate space like UVs. For example, where it should be grabbing one hand graphic, there's actually 4 hands, as if it's copying the original unscaled hand's pixels from the now-shrunk-atlas and accidentally grabbing nearby sprites

Presumably i need to tweak ToAtlasRegion to return the adjusted region?
chase-cc
  • Posts: 14

Harald

Which version of the spine-unity runtime are you using? We have rather recently fixed a bug where texture's Max Size platform settings were ignored when regions were being extracted.
User avatar
Harald

Harri
  • Posts: 1524

Anisoft

Sorry to bring this up from the dead, I just didn't see a confirmation or not.

Has this support been added yet?
Anisoft
  • Posts: 63

Harald

Oh boy, that issue slipped through since it had no assignee. We are just starting implementation right now. Thanks for posting and sorry for the super long delay!
User avatar
Harald

Harri
  • Posts: 1524

Anisoft

No worries! Thanks for still implimenting it!

Unfortunately it doesn't seem this works quite yet with normal maps as it really only seems to work with sprites.

The devs suggesting something along the lines of allowing paired atlases packing to enable this feature but...that was years ago.

In the meantime I wrote my own auto packer using unity's texture packing and my own AtlasRegion text file exporter. Their packing isn't the best but it'll do for now until I get around to writing my own or unity enables the features I needed for sprite atlas.

Would seriously be cool to use sprite atlas tho. Thank you so much!
Anisoft
  • Posts: 63


Return to Unity