What are the GLTF animations sampler input/output values?
14:35 29 Jul 2019

I am reading the specification, but I can not understand the properties of the sampler.

This is the animation that I have:

"animations" : [
        {
            "channels" : [
                {
                    "sampler" : 0,
                    "target" : {
                        "node" : 0,
                        "path" : "translation"
                    }
                }
            ],
            "name" : "00001_2780.datAction",
            "samplers" : [
                {
                    "input" : 9,
                    "interpolation" : "CUBICSPLINE",
                    "output" : 10
                }
            ]
        },
        {
            "channels" : [
                {
                    "sampler" : 0,
                    "target" : {
                        "node" : 1,
                        "path" : "translation"
                    }
                }
            ],
            "name" : "00002_2780.datAction",
            "samplers" : [
                {
                    "input" : 9,
                    "interpolation" : "CUBICSPLINE",
                    "output" : 11
                }
            ]
        }
    ],

What I can not understand is what are the values 9 and 10 for the first sample and 9 and 11 for the second

All that we have in the specification is this:

Each of the animation's samplers defines the input/output pair: a set of floating point scalar values representing linear time in seconds; and a set of vectors or scalars representing animated property.

And this makes it more unclear to me.

Is there a more detailed explanation about what input/output values are and what they represent. What will happen for example if I change the input from 9 to 99 or to 9.9 or to 0.9 or to 0. How will this change the animation?

gltf