对照glTF透视和正交相机,检查近裁剪面
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| camera | projection | yfov_rad | znear | zfar | frame_goal |
|---|---|---|---|---|---|
| hero | perspective | 1.0471975512 | 0.01 | 100 | all geometry visible |
| ortho | orthographic | not used | 0.01 | 100 | xmag=.4 ymag=.3 |
| bad-near | perspective | 1.0471975512 | 2.5 | 100 | intentional clipped nose |


设定正交基准
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 投影 | 透视与正交分开 | author_acceptance_reference |
| 角度 | yfov60度=π/3rad | author_acceptance_reference |
| 裁切 | 增大near导致切鼻不修mesh | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {},
"files": [
{
"file": "author-control.glb",
"bytes": 66828,
"extensionsUsed": [],
"animations": 0
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 投影 | 透视与正交分开 | author_acceptance_reference |
| 角度 | yfov60度=π/3rad | author_acceptance_reference |
| 裁切 | 增大near导致切鼻不修mesh | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 弧度错 | yfov=60 | 无效巨大视野 |
| 原因错 | 近裁剪缺鼻=AI丢几何 | 先查相机 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。