核对glTF秒制时间和STEP、LINEAR插值
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| time_s | translation_x_m | translation_y_m | translation_z_m | interpolation |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | LINEAR |
| 1 | 0.2 | 0 | 0 | LINEAR |
| 2 | 0.4 | 0 | 0 | LINEAR |


比较LINEAR
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 总时长 | 2 | author_acceptance_reference |
| 0.5秒LINEAR | x=0.1m | author_acceptance_reference |
| 0.5秒STEP | x=0m | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {
"animationSeconds": [
0,
1,
2
],
"linearAtHalfSecondM": 0.1,
"stepAtHalfSecondM": 0
},
"files": [
{
"file": "author-control.glb",
"bytes": 20864,
"extensionsUsed": [],
"animations": 1
},
{
"file": "step-interpolation.glb",
"bytes": 20860,
"extensionsUsed": [],
"animations": 1
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 总时长 | 2 | author_acceptance_reference |
| 0.5秒LINEAR | x=0.1m | author_acceptance_reference |
| 0.5秒STEP | x=0m | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 时间单位 | 0,24,48写入秒 | 实际48秒 |
| 非递增 | 0,1,1 | 时间输入应严格递增 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。