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

Multi Blend 2D Playing Incorrect Animation #2553

Open
Kh4iri opened this issue May 4, 2024 · 2 comments
Open

Multi Blend 2D Playing Incorrect Animation #2553

Kh4iri opened this issue May 4, 2024 · 2 comments
Labels
animations bug Something isn't working
Milestone

Comments

@Kh4iri
Copy link

Kh4iri commented May 4, 2024

Issue description:
Occasionally, the Multi Blend 2D plays an incorrect animation. This problem typically arises when both the X and Y values are non-zero. For instance, in the video provided, the Y value is 100 and the X value is -100, yet it triggers the right strafe animation instead of the left strafe animation.

2024-05-05.mp4

Steps to reproduce:

  1. Open the project I provided
  2. Open Contents/Animations/Robot Anim Graph

Minimal reproduction project:
TestProject.zip

Flax version:
1.8.1

@Kh4iri Kh4iri changed the title Multi Blend 2D Plays the Incorrect Animation Multi Blend 2D Playing Incorrect Animation May 4, 2024
@Muzz
Copy link
Contributor

Muzz commented May 5, 2024

The issue is that the engine uses triangulated blending, so imagine triangles drawn between the dots. The interpolation of those points outside of the triangles isn't very intuitive which should be fixed imo. But if you keep the values within the triangles, it works correctly.

For this system to properly work you really need 8 directions of movement.

@Kh4iri
Copy link
Author

Kh4iri commented May 5, 2024

Ah thanks for the explanation! I got it working using your solution. I also agree that this issue should be fixed or at least mentioned somewhere.

MultiBlend2D_8Dir.mp4

@mafiesto4 mafiesto4 added this to the 1.9 milestone May 9, 2024
@mafiesto4 mafiesto4 added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
animations bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants