• RuntimesBugs
  • Wrong mesh generation with separator after 4.2 upgrade

Problem statement

The mesh in animation is deformed for a few frames after upgrade to 4.2
See attached video. Attaching also isolated anonymized Spine and Unity project.
It only appears when the separator is enabled. I can make it work by deleting all meshes in the spine project or deleting some keys in the animation, but I was unable to isolate any single mesh or key that is producing that. It starts in the animation around frame #1200, that means after 40s, but you can see it clearly when setting timeScale = 5 (faster for testing)
The same problem never appeared on any other skeleton we have in our project.

Runtime information

Latest 4.2, updated 2024-05-17

Video:
Spine project:

spine-skeleton.zip
578kB

Unity project:

spinetestunity.zip
3MB
Related Discussions
...

It seems like you are experiencing an issue with mesh deformation when using the separator after upgrading to Spine 4.2. Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. Update to the Latest Version: Ensure that you are using the latest version of the Spine editor and the spine-unity runtime. You can download the latest versions from Spine Unity Download.

  2. Re-export the Spine Project: Sometimes re-exporting the Spine project can resolve issues. Try re-exporting your Spine project and then re-importing it into Unity.

  3. Check for Known Issues: There might be known issues related to mesh generation and separators in the latest version. You can check the Spine Runtimes GitHub Issues for any related issues and their resolutions.

  4. Disable and Re-enable Render Separator: As a workaround, you can try disabling and re-enabling the Enable Render Separator option in the SkeletonRenderSeparator component. This has been known to resolve similar issues in the past.

  5. Minimal Reproduction Project: If the problem persists, try to create a minimal reproduction project that isolates the issue. This can help in identifying whether the problem is with a specific mesh or key in the animation.

  6. Contact Support: If none of the above steps resolve the issue, you can send your project files to the support team for further investigation. Make sure to include a brief description of the issue and any steps you have already taken to troubleshoot it.

Here is a summary of the steps you can take to troubleshoot the issue:

  1. Ensure you are using the latest versions of the Spine editor and spine-unity runtime.
  2. Re-export your Spine project and re-import it into Unity.
  3. Check for known issues on the Spine Runtimes GitHub.
  4. Try disabling and re-enabling the Enable Render Separator option.
  5. Create a minimal reproduction project to isolate the issue.
  6. Contact support with your project files if the issue persists.

@abuki We're sorry for the troubles! Thanks for reporting and providing a reproduction Unity project up front, we could reproduce the issue.

We've created an issue ticket here:
EsotericSoftware/spine-runtimes2532
We will get back to you here on the forum as soon as we've figured out what's going wrong.

@abuki FYI: The issue seems to only occur with #define SLOT_ALPHA_DISABLES_ATTACHMENT active in MeshGenerator.cs line 42, so you might want to disable this define locally in your installation until we have released a proper bugfix for the issue.

Harald Hi Harald, many thanks for your quick action! I can confirm the bug if fixed now.