Twitching Spine animations on some Android

What positions does the sheep have when it starts to jitter?

I suspect it might have something to do with precision in the shader that the spine models use. I did a quick highly non-scientific test on two different Android devices;

     Device |   mediump | highp
     ------------------------------
        S8+ |     ~1000 | ~39071268
         S3 | ~39071268 | ~39071268

The numbers are the x positions where I experienced jittering using different precision qualifiers.

You could make a copy of the spine.material and spine.vp inside builtins/materials/, make the new spine.material point to the new spine.vp. Inside spine.vp try changing mediump to highp for view_proj and position, like this:

uniform highp mat4 view_proj;

// positions are in world space
attribute highp vec4 position;

Lastly make sure your spine models point to the new material!

This is how the jitter looked to me, is it something like this you are experiencing?

6 Likes