ok chen fang

屏幕快照 2019-05-28 下午6.16.24.jpg

屏幕快照 2019-05-28 下午6.15.23.png
You do not have the required permissions to view the files attached to this post.
ok chen fang
  • Posts: 4

Mario

Sorry for the troubles. spine-ts Canvas does not support meshes. It only supports rectangular region attachments. You could also try spine-ts WebGL, or the pixi.js Spine integration. Both require the end user to have WebGL enabled in their browser.

对不起,麻烦了。 spine-ts Canvas不支持网格。 它仅支持矩形区域附件。 您还可以尝试使用spine-ts WebGL或pixi.js Spine集成。 两者都要求最终用户在其浏览器中启用WebGL。
User avatar
Mario

Mario
  • Posts: 2841

ok chen fang

spine-ts canvas 以后会支持网格吗?
ok chen fang
  • Posts: 4

Mario

我们确实对spine-ts画布中的网格有了实际的支持。 您可以通过将SkeletonRenderer.useTriangleRendering设置为true来启用它。 但是,它是一个实验性功能,速度极慢,并且在某些浏览器上存在伪影。 这是Canvas API的限制,它不支持渲染任意三角形网格。 我强烈建议使用spine-ts WebGL或pixi.js.

We do have exprimental support for meshes in spine-ts canvas. You can enable it by setting SkeletonRenderer.useTriangleRendering to true. However, it is an experimental feature, extremely slow, and has artifacts on some browsers. This is a limitation of the Canvas API, which does not support rendering arbitrary triangle meshes. I highly recommend using spine-ts WebGL or pixi.js.
User avatar
Mario

Mario
  • Posts: 2841


Return to 中国Spine用户