Files
AnyImage/docs/guides/depth-plane.md
nan 377eee43f5 Refactor and enhance geometry node groups for depth plane and material layers
- Updated the depth plane node group to load from an asset and simplified the interface.
- Created a new build script for depth plane geometry nodes.
- Introduced material layer groups for image and depth materials with appropriate sockets.
- Added functionality to connect balloon normal scale to the image material.
- Enhanced tests to validate the new node groups and their connections.
- Ensured that production code does not create node groups directly.
2026-08-31 12:25:23 +08:00

1.6 KiB
Raw Blame History

Depth Plane

Depth Plane 将一张静态图片转换为带深度位移的网格,适合快速场景搭建、2.5D 合成和立体插画。

创建

  1. 在 3D View 中选中 Image Empty。
  2. 右键选择 AnyImage > Convert to Depth Plane。
  3. 等待状态栏提示任务完成。

转换不会弹出设置对话框。深度模型和分辨率使用 Edit > Preferences > Extensions > AnyImage > Depth & Normal 中的默认值。

选择模型

MoGe-2

默认推荐。MoGe-2 估算尺度一致的深度与相机信息,使用 MoGe Resolution Level 控制处理精度。第一次使用建议保持 5。

调整结果

生成对象使用扩展资产中的 O Image Depth Plane Geometry Nodes 修改器:

  • Subdivide:控制基础平面细分级别;
  • Thickness:增加背面和侧壁,0 输出单面;
  • Depth Amount:控制图片深度位移强度。

结果颜色来自当前 Image Empty,深度由所选模型分析。转换会以一个 Undo 步骤替换源 Empty;如果需要保留原对象,请在转换前复制一份。

当前输入范围

Depth Plane 当前只支持静态图片。视频与序列帧可以转换为普通 Plane,或使用 Remove Background / Upscale 逐帧处理。

实现中的深度场、坐标锚定和节点流程见 Convert to Plane 实现原理。

分析分辨率与颜色

Depth 输入还受 Environment 区的 Maximum AI Input Size 约束,默认最大长边为 2048 px。超过时只会等比缩放模型分析输入;结果材质仍使用原始颜色图片,不会改用限制后的临时图。