- Modifié
unity图片尖角处的描边缺失,怎么解决?
- Modifié
There is a missing stroke in the sharp corner of the Unity image. How to fix it?
当你看到部分轮廓被切掉时,说明你的网格边框很可能被图片的不透明像素包得太紧了。这在下面的章节中已经介绍过了。
When you see parts of the outline cut away, it means your mesh borders are likely being too tightly wrapped around the opaque pixels of your images. This has been described in the following section:
[url=http://zh.esotericsoftware.com/blog/Outline-shaders-for-spine-unity#%E7%BD%91%E6%A0%BC%E9%99%84%E4%BB%B6
%E7%95%99%E8%B6%B3%E7%A9%BA%E9%97%B4%E4%BB%A5%E4%B8%8D%E5%88%87%E6%8E%89%E8%BD%AE%E5%BB%93%E7%BA%BF]Blog: spine-unity轮廓着色器: 网格附件 留足空间以不切掉轮廓线[/url]
如果网格附件所指的图像没有足够的填充物,请在图像编辑器上均匀地在图像的四边添加空白,然后在再次打开Spine项目时出现的以下对话框中选择保持大小
。
If the image to which the mesh attachment refers does not have sufficient padding, add whitespace evenly on all four sides of the image on an image editor, then select Keep size
on the following dialog box that appears when you open the Spine project again:
- Modifié
我留有足够的网格空间。
I do have enough mesh space.
↓就像SpineBoy这个尖角的描边效果,只是我现在的角色有很多细长的尖角,问题更明显了。
↓It's like SpineBoy with sharp corners, only my character now has a lot of thin, sharp corners, so the problem is more obvious.
这是这种纹理空间轮廓效果的固有限制。 不幸的是,它不适合在尖角周围非常大胆的笔触效果,对不起!
This is an inherent limitation of this texture-space outline effect. Unfortunately it is not suitable for very bold stroke effects around sharp corners, sorry!
Okay... Is there any other way? About Spine outline.
You could use screen-space outline effects. You should be able to find multiple packages on the Unity Asset store by searching for outline
. Just be sure that the package can handle transparency and is not limited to opaque geometry.
Another way is to include the outlines in the skeleton itself, having a separate set of attachments with an outline.
Okay, thank you very much.