feat(transcode): add 3D asset support and turntable viewer (#454)

* feat(transcode): add 3D asset support and turntable viewer

* perf(turntable): stream file via Bun.file and increase upload timeout

* feat(turntable): increase upload timeout to 15m to support 5GB uploads

* fix(webui): align 3D model viewer layout and full-width control bar with video viewer

* feat(webui): unify 3D viewer bottom bar and redesign cyclic ruler slider

- Place RulerSlider in single row with playback and zoom controls, centered with max 320px width
- Flank RulerSlider with minus and plus buttons to step angle by 15°
- Redesign RulerSlider with fixed center indicator and moving cyclic track with continuous 360° wrapping
- Render major ticks longer at 60° intervals without numeric text labels on track
- Display floating degree tooltip above center indicator only during dragging

* fix(webui): prevent RulerSlider from collapsing to 0px width in control bar

- Use flex layout with flex-1 on left and right clusters to preserve center cluster width
- Enforce min-w-[140px] and w-full on RulerSlider
- Fix tooltip positioning and remove outer overflow-hidden

* feat(webui): snap RulerSlider track directly to discrete 15° ticks during drag

* fix(webui): prevent ruler snap-back caused by floating point second truncation

- Use Math.round instead of Math.floor in secondToDegree to avoid 0.999996 dropping to previous frame
- Ensure final dragDegree is committed on pointer up

* fix(webui): fix arrow key frame rounding and duplicate event bubbling

- Use Math.round instead of Math.floor for keyboard arrow frame navigation in ModelViewer
- Add e.stopPropagation() to RulerSlider keyboard events to prevent duplicate bubbling to window listener

* feat(webui): redesign RulerSlider with encapsulated step buttons and capsule pill track

* feat(webui): make RulerSlider responsive on mobile and remove bottom bar reset button

* fix(webui): load 3d video directly without poster and invert drag rotation to counterclockwise

* fix(webui): fix 3d asset viewer frame seeking and drag jitter

* feat(transcode): show 3D asset poster preview immediately after render start

* fix(viewer): synchronize 3D turntable playback via frame callback to prevent skipped degrees

* fix(viewer): handle touchpad zoom gestures and prevent page zoom in 3D viewer

* fix(viewer): eliminate 3D model rotation jitter at 345 degrees

* fix(share): watermark 3D asset turntable video on share links

* fix(share): preserve video transcode resolution on watermarked share links

* fix(viewer): download original 3D model file instead of rendered turntable MP4
This commit is contained in:
Yiling-J
2026-10-11 21:32:28 +08:00
committed by GitHub
parent e894457275
commit 43a2eced75
68 changed files with 5548 additions and 59 deletions
+12
View File
@@ -257,6 +257,18 @@
"transcode_settings": "Transcode Settings",
"transcode_description": "Manage your team's video transcoding configurations.",
"transcode_strategy_note": "Strategy: We select the best resolution from your list that supports the input quality. Content is never upscaled.",
"turntable_settings": "3D Turntable Renderer",
"turntable_settings_description": "Configure the external Blender turntable-renderer service for generating 3D asset previews and videos.",
"turntable_server_url": "Server URL",
"turntable_server_url_placeholder": "e.g. http://localhost:3001",
"turntable_username": "Username",
"turntable_password": "Password",
"turntable_password_placeholder": "Leave blank to keep existing password",
"turntable_env_configured": "Configured via environment variables (Read-only)",
"turntable_test_connection": "Test Connection",
"turntable_connection_success": "Connected successfully",
"turntable_connection_failed": "Connection failed",
"turntable_testing": "Testing...",
"hardware_acceleration_section_description": "Configure hardware-accelerated video encoding to offload workloads to GPUs, or use CPU software encoding.",
"mp4_transcoding": "MP4 Transcoding",
"mp4_transcoding_description": "Generate web-compatible MP4 files for file downloads and standard video playback.",
+12
View File
@@ -257,6 +257,18 @@
"transcode_settings": "转码设置",
"transcode_description": "管理团队的视频转码配置。",
"transcode_strategy_note": "策略:我们会从您的列表中选择支持输入质量的最佳分辨率。内容不会被放大。",
"turntable_settings": "3D 转盘渲染服务",
"turntable_settings_description": "配置用于生成 3D 资产预览图与转盘视频的外部 Blender 渲染服务。",
"turntable_server_url": "服务地址",
"turntable_server_url_placeholder": "例如 http://localhost:3001",
"turntable_username": "用户名",
"turntable_password": "密码",
"turntable_password_placeholder": "留空以保留当前密码",
"turntable_env_configured": "已通过环境变量配置(只读)",
"turntable_test_connection": "测试连接",
"turntable_connection_success": "连接成功",
"turntable_connection_failed": "连接失败",
"turntable_testing": "正在测试...",
"hardware_acceleration_section_description": "配置硬件加速视频编码以将工作负载分流至 GPU,或使用 CPU 软件编码。",
"mp4_transcoding": "MP4 转码",
"mp4_transcoding_description": "生成适用于文件下载和标准视频播放的 Web 兼容 MP4 文件。",