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

Cyclic BlendSpaces [1D/2D] for Animation #34179

Closed
wants to merge 3 commits into from

Conversation

marstaik
Copy link
Contributor

@marstaik marstaik commented Dec 7, 2019

Note: Depends on #34134, as the blends are even more broken without it.

This PR aims to do some bugfixing for blendspaces as well as introduce the concept of Cyclic BlendSpaces.

There was some previous discussion of this here: #23414

Coming from other game engines, this is really a crucial and useful component for animation.

These cyclic BlendSpaces are very important for blending in animations whose timescale is supposed to match, such as movement animations, look-at animations, breathing animations, etc...

Currently they only support AnimationNodeAnimation's, since its currently the only way to reliably obtain an AnimationNodes runtime length, which is a hard requirement.

If AnimationNode's had a common interface where each node could return its computed runtime length, then any node could be used in the future, but that is a ton of work and maybe not as crucial for Cyclic BlendSpaces anyways.

Here is a Demo:
https://f.staik.net/f/2de.mp4

@marstaik marstaik changed the title Cyclic BlendSpaces for 1D/2D Animation Cyclic BlendSpaces [1D/2D] for Animation Dec 7, 2019
@akien-mga akien-mga added this to the 4.0 milestone Dec 9, 2019
@marstaik
Copy link
Contributor Author

Updated for current master branch

@marstaik
Copy link
Contributor Author

Updated for 4.0

@SuperDIMMaX
Copy link

SuperDIMMaX commented Jul 30, 2020

Probality not working with get_root_motion_transform() - tested on 3.2.3 this - c30eb28
BlendSpace1D - working; BlendSpaceCyclic1D - no transform

@marstaik
Copy link
Contributor Author

@SuperDIMMaX do you have a sample project I can check?

@SuperDIMMaX
Copy link

SuperDIMMaX commented Jul 31, 2020

@SuperDIMMaX do you have a sample project I can check?

@marstaik
Test_cb.zip

@fire
Copy link
Member

fire commented Apr 28, 2021

@marstaik Are you ok with me taking this over? You can keep the pr open and I can modify your branch.

@marstaik
Copy link
Contributor Author

@marstaik Are you ok with me taking this over? You can keep the pr open and I can modify your branch.

Yeah, that's fine. :)

@fire
Copy link
Member

fire commented Aug 27, 2022

@TokageItLab Is this still valid?

@TokageItLab
Copy link
Member

As superseded by #62424, I think it can be closed. However, #62424 still seems problematic and should be sent off to 4.x or later.

@akien-mga
Copy link
Member

Closing based on above comment.

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

Successfully merging this pull request may close these issues.

7 participants