feat: 运动相机支持 + move_camera.txt 关键帧驱动

input.txt 新增:
  move_camera: 0  # 0=固定视角, 1=按 move_camera.txt 运动

move_camera.txt 格式(4列:帧号 距离 俯仰角 方位角):
  0    40.0   0     0
  100  80.0  -30  180
  200  40.0   0   360

display.txt header 传递 camera_keyframes JSON 数组,
draw.py 按帧时间线性插值驱动相机运动(循环播放)。
This commit is contained in:
2026-06-12 07:52:06 +08:00
parent f1afb7c479
commit 22b94011ee
5 changed files with 115 additions and 3 deletions
+1
View File
@@ -105,3 +105,4 @@ box_color_b: 0.85
camera_distance: 40.0 # 摄像机到场景中心的距离
camera_elevation: 0 # 俯仰角(度),负值=俯视
camera_azimuth: 0 # 方位角(度)
move_camera: 0 # 0=固定视角, 1=按 move_camera.txt 运动