RealityKit playAnimation with transitionDuration causes a blink/glitch frame

I am experiencing a single video frame glitch when transitioning from one RealityKit Entity animation to another when transitionDuration is non-zero.

This is with the current RealityKit and iOS 14.6 (i.e., not the betas).

Is this a known issue?

Have people succeeded in transitioning from one animation to another with a non-zero transition time and no strange blink?

Background:

I loaded two USDZ models, each with a different animation. One model will be shown, but the AnimationResource from the second model will (at some point) be applied to the first model.

I originally created the models with Adobe's mixamo site (they are characters moving), downloaded the .fbx files, and then converted them to USDZ with Apple's "Reality Converter".

I start the first model (robot) with its animation, then at some point I apply the animation from the second model (nextAnimationToPlay) to the original model (robot).

If the transitionDuration is set to something other than 0, there appears a single video frame glitch (or blink) before the animation transition occurs (that single frame may be the model's original T-pose, but I'm not certain).

robot.playAnimation(nextAnimationToPlay, transitionDuration: 1.0, startsPaused: false)

If transitionDuration is set to 0, there is no glitch, but then I lose the smooth transition.

I have tried variations. For example, setting startPaused to "true", and then calling resume() on the playback controller; also, waiting until the current animation completes before calling the playAnimation() with the next animation. Still, I get the quick blink.

Any suggestions or pointers would be appreciated.

Thanks,

Answered by ForumsContributor in
Accepted Answer

I've tested this on the iPadOS 15.0 beta (19A5318f), and it appears to be working.

I'm going to mark this as resolved (i.e., once the new OS ships in the fall).

RealityKit playAnimation with transitionDuration causes a blink/glitch frame
 
 
Q