Download

Unexpected sync groups behavior

Hi. For the last month of work on my project i found several bugs in sync groups behavior. I dont know how many more oddities has sync groups code, but its already critical for my project.
The problem is that the sync groups can unexpectedly reset self time position during transitions between anim states, or while blending by BOOL, INT or ENUM nodes. Also sync group can reset time position when it shouldn’t be.
I create example project with reproduced each case with WALK and RUN anims. Blend between this anims driven by custom pulsating variable for clear observation of changes in sync group.


Below is a list of problems for a clear understanding.

CASE 1. Sync group always reset time position during zero or near zero transition between states in state machine.


case1-2
I think if transition fully executed at one frame, sync group time will be reset to most relevant anim start position. If i set sufficient time for transitions (eg 0.1), sync group will keep previous position correctly, but if i clamp max FPS to 10 for example - sync group again will be reset time position after transition.

CASE 2. Sync group always reset time position during transition in inertialization mode, independently to blend duration time.
case2
Same problem like case 1, but in inertialization mode that error happens always, independently to blend duration time. That means i cannot use this feature if anims in different states are synced.

CASE 3. Sync markers based syncing dont work with non-looping animations.


case3
If new leader animation in marker based sync group is non-looping - sync group always reset position in all cases.

CASE 4. Sync markers based syncing ignores “Always reset on entry” option in anim state settings.



case4
If blended states has true “Always reset on entry” option, marker based sync group will keep prev position without reset.

Who knows any more thoubles with sync group? And who knows how solve this?

Link to example project - syncGroupBugsV26.7z - Google Drive (ue4.26)

1 Like

I have the same problem with sync groups, but in my case, I try to sync walk loop and stop animation, sync markers just don’t work at all. Have you found a solution for this?

1 Like

Yes. I solve this issue.

  1. In animModifier class i procuderally create two curves for each sync group ( 1. Anim length value, 2. Weight curve (value = 1)) for each sync group. Curves must be created in all synced anims.
  2. After that convert all synced anims to single frame mode (right mouse click on anim node).
  3. In anim BP create float var to drive anim time for sync group. My example on first screen
  4. connect variable to each anim node. Note: for blendspaces u dont need scale value to anim length, it drives by normalized time position
  5. Use “modify curves” node for filter sync group curves at any anim graph position (right side on second screen)
  6. If u have sync markers - delete all. Because it add unexpected behaviour to single frame anim nodes.

For your case with start stop transitions you can manually modify sync group variable as you want.

2 Likes

… this may be worth a shot. Not sure they actually care about it, but they are tweaking animation stuff for ue5. So maybe they can pick this up too.
@LDelayen

I myself have used the groups (in .22) but I have actually never even bothered to check if they were working accurately / never noticed them not working as I expected them to.

Yeah, thanks for the insight. In my case, I had to do a lot of stuff manually, as stop animation has different speed unlike walking cycle. Sync groups and markers seem like an awesome feature, hope devs will fix it in the near future