【发布时间】:2019-12-07 04:20:27
【问题描述】:
我正在阅读规范,但我无法理解采样器的属性。
这是我的动画
"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
}
]
}
],
我无法理解的是第一个样本的值 9 和 10 以及第二个样本的值 9 和 11
我们在规范中只有
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
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.
这让我更不清楚。
关于什么是输入/输出值以及它们代表什么,是否有更详细的解释。例如,如果我将输入从 9 更改为 99 或更改为 9.9 或更改为 0.9 或更改为 0 会发生什么。这将如何更改动画?
谢谢
【问题讨论】:
标签: gltf