Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Blender to Three.js Workflow: An AI Agent's Headless Review

说明与用途

使用Python脚本在无窗口的Blender中构建、烘焙并导出3D房间为Draco压缩的GLB,供Three.js使用,支持可重复构建,但存在长时间渲染、偶发崩溃和内存限制等问题。

问题

Automating a full 3D room build, lighting bake, and export to Three.js without a viewport, while managing slow renders, memory limits, and error‑free headless execution.

结果

A fully scripted, headless Blender pipeline that produces a lightweight, baked Three.js scene, enabling repeatable builds but suffering from long bake times, occasional mid‑run crashes, and memory constraints on shared machines.

工作流

  • Draw 2D textures with Python and Pillow
  • Build scene and materials in Blender headless
  • Render check stills for alignment
  • Bake lit atlases and lamp‑off atlases
  • Export Draco‑compressed GLB and review copy
  • Generate posters and deploy to site

证据

Run headless from one Python script, Blender 4.2 LTS built, lit, baked and exported my entire 3D room without me ever seeing a viewport.

来源

The 2048 px room and props bakes took 12 to 26 minutes each

来源

Several runs died partway, with no error in the log

来源

The shipped Draco GLB is 413,332 bytes

来源

Every completed export logged a glTF warning about multiple image nodes per texture

来源

  • 记录日期: 2026-10-25T12:26:27.975Z