Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

BG - Animation Clamping produces unexpected results #6381

Open j-conrad opened 12 months ago

j-conrad commented 12 months ago

Description When turning on Animation Clamping for an animation, subsequent animations do not play all the way through and/or start in the wrong place.

To Reproduce Steps to reproduce the behavior:

  1. Open the attached .blend
  2. Note animation clamping is OFF
  3. Export as .glb and run in Hubs
  4. Press each of the buttons to see the animations play independently. (Note that they both snap back to their starting frame, but you just don't notice on the righthand animation because that's the object's starting orientation.)
  5. Go back to Blender and turn on clampWhenFinished for both animations.
  6. Export as '.glb` and run in Hubs
  7. Whichever button you hit SECOND will not play its animation all the way through. It appears to go halfway. In fact, all subsequent animations will only play part way through. Note that the monkey starts facing the wrong orientation (profile).

Expected behavior The monkey head should be able to play turning away 180, then play the animation of it continuing and facing front.

Hardware

Additional context When opening the exported .glb in the Khronos glTF viewer, the animations appear correct. AnimationClamp_Bug.zip