• Editor
  • Gap/Line Issues at Joints in Spine Animation with Swift Runtime

When running Spine animations in Swift, visible gaps/lines appear at character joints.

Related Discussions
...

The issue of visible gaps or lines at character joints in Spine animations when using the Swift runtime could be related to how the attachments are rendered or how the meshes are set up. This problem might be due to "z-fighting" or incorrect attachment setup, which can cause rendering artifacts. To address this, you can try adjusting the rendering order or slightly offsetting the attachments on the z-axis to prevent z-fighting. Additionally, ensure that the meshes and attachments are correctly set up in the Spine editor, and check for any warnings or errors that might indicate issues with the mesh or bone setup.

  • hechang ответили на это сообщение.

    Spinebot
    The same set of animations runs normally on Android and H5, but there are issues on iOS. Can this be resolved through code?

    A screenshot would help, but it's most likely a problem with premultiplied alpha. Eg, not using PMA, using PMA but not rendering with PMA enabled, applying PMA twice, etc. Xcode is notorious for applying PMA, you likely need to disable that.

    • hechang ответили на это сообщение.

      Nate

      Img
      There are two obvious lines at the ear area. I used the CocoaPods to import the Spine runtime, but I couldn't find a place to set the "premultiplied" option.

      • hechang ответили на это сообщение.

        Maybe you could use non-PMA images and let Xcode apply PMA, instead of using the Spine texture packer to apply PMA.

        • hechang ответили на это сообщение.

          Nate We've identified an issue with SpineViewSource. If I load from the bundle, there is no problem, but if I load from a file, the issue occurs.

          • Misaki ответили на это сообщение.

            hechang Is there a process in the loading process that modifies the image files, such as making them lighter? If there is a process that resaves the texture atlas page after it has been exported from Spine, the color information of the translucent pixels may be lost, and it may cause artifacts in areas where translucent pixels are mixed, such as image borders.