Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animations may not be exported correctly when negative scale and IK constraint are used at the same time #730

Closed
misaki-eymard opened this issue Feb 2, 2023 · 1 comment

Comments

@misaki-eymard
Copy link

misaki-eymard commented Feb 2, 2023

Description:
Animations have a mesh that has weights for a bone constrained by an IK constraint and scaled in the negative direction may be exported as 1 * 1 px images when you export it as PNG format. However, this is also related to the FPS on the export settings or key timing. If you change them, the animation may be exported correctly even if the negative scale and IK are used.

Expected behavior:
A mesh that has weights for a bone constrained by an IK constraint can be shown in the exported animation as seen in the Spine editor's viewport.

Steps to reproduce:

  1. Download and unzip the following zip file:
    Negative-scale-and-IK-constraint.zip

  2. Open the Spine project in it using Spine v4.1.19, and press Ctrl + E to open the Export window.

  3. Export the animations with the settings shown in the following screenshot (Default settings except that Animations is set to All and FPS is set to 30.):
    Screen Shot 2023-02-02 at 15 34 46

  4. When you check the Output folder, the "Animation-can-be-exported-correctly" is exported correctly, and the "Animation-has-the-problem" is exported as 1*1px images.

The only difference between the two animations is whether the Mix of the IK constraint is set to 100 or 0. However, if you set the FPS to 20 in the export settings, both can be exported correctly. Also, if you move the scale key at frame 10 in "Animation-has-the-problem" to frame 15, it can be exported correctly as well.

The versions of Spine in which this issue were found:
Spine v4.1.19

This bug was reported on the following forum post:
http://esotericsoftware.com/forum/png-export-bug-automatically1x1-18604

@NathanSweet
Copy link
Member

The problem comes from the frame where the bone is scaled to zero. Fixed in 4.1.20 and our 4.1 runtimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants