• Unity
  • Outline shaders for spine-unity

We are happy to announce outline rendering support for all shaders in our spine-unity runtime! This makes it easy to show colored selection outlines around characters, animated Spine UI elements, and much more.

Read the blog post here:
Blog: Outline shaders for spine-unity

Hình ảnh bị xóa do không hỗ trợ HTTPS. | Vẫn hiển thị

Related Discussions
...
  • Đã chỉnh sửa

Great work Spine Team. :-) THANK YOU :-)

Great work!!
This new function is pretty COOL! THANK YOU!!!
But the thickness of outline is varied in Unity.
Already leave space to not cut off the outline.

Thanks for your kind words, glad you like it! 🙂

But the thickness of outline is varied in Unity.

The outline width is constant in texel size (in texture space), so if you the wing and hat parts are scaled twice as large (half the texel-density on screen), then the ouline will show the same "twice as large" scaling effect.

I have created an issue ticket here to support constant outline width in screen-space:
https://github.com/EsotericSoftware/spine-runtimes/issues/1615

Harald đã viết

I have created an issue ticket here to support constant outline width in screen-space:
EsotericSoftware/spine-runtimes1615

Thanks for reply! 🙂 Great help!

Is this URP compatible?

Is there or will there be a packer for Spine projects?
Where Spine collects all source folders and save them to a master folder for when a project has been completed.
Similar to the 'Collect dependencies' in After effects.

*Im not sure where suggestions should go *

Arnissan đã viết

Is this URP compatible?

I also have the same question!

Damn I love the Spine team !!!
Thanks a lot ! 🙂

10 ngày sau
Arnissan đã viết

Is this URP compatible?

it has issue with URP look like this

18 ngày sau

Hello, also hoping that this feature can get released on the URP shaders?

@[đã xóa]

I don't see anything mentioned in the post about the URP shaders supporting or not supporting outlines. Is there anything I'm missing?


I found this post in case it helps others. tldr: outlines are not supported in URP.

Issue with urp

10 tháng sau

I don't understand why the outlines have different widths when I exported 2 characters with the same settings from Spine, and I have identical shaders settings in unity - but the characters have a drastic difference on their outlines. Would be nice if I didn't have to manually work on the outline width for each character.

We have an issue ticket on our roadmap that deals with implementing screen-space constant ouline width:
https://github.com/EsotericSoftware/spine-runtimes/issues/1615

In the current implementation it it is constant in texel space, so the material property will set it to e.g. 3 texels width. So it depends on the resolution of your input attachment images, if e.g. a head.png attachment has twice the resolution at the same display size, the outline will be half as thick using the same 3 texel width.

2 tháng sau

We also stumbled upon the issue that different spine characters get different outline sizes in our project and we are too far along to change the attachment images for all the characters.

Do you have an estimation of when the issue ticket will be resolved? If it's too far off we will have to continue development without outlines. Or alternatively, can you share the approach you want to take for it? Maybe we can code something ourselves.

BarbaraTGE đã viết

We also stumbled upon the issue that different spine characters get different outline sizes in our project and we are too far along to change the attachment images for all the characters.

Just to be sure: Is changing the Outline width Material property per Material not an option for you?

A potential solution to this is listed in the issue ticket, using ddx/ddy functions:
https://github.com/EsotericSoftware/spine-runtimes/issues/1615
Basically what is needed is calculating the ddx(uvCoords) and ddy(uvCoords) values (which provides how much each fragment changes in UV space) and multiplying this value with the outlineWidth parameter.

Just to be sure: Is changing the Outline width Material property per Material not an option for you?

Not really as the differences in png size we have are too big, when we scale up the outline width as much as we would need to, we get other problems.

Thanks for pointing us in the right direction, we will try to make that work!

You're welcome, don't hesitate to ask if you should encounter any problems along the way.