- Added interaction helpers for cutout region validation and shape menu interaction. - Created main operator for converting image regions into cutout shapes, including AI artifact generation. - Introduced object creation logic for cutout shapes, handling depth and normal textures. - Defined cutout shape identifiers and node groups for various shape types. - Implemented depth texture writing and prediction artifact generation for MoGe-2. - Developed server jobs for generating cutout artifacts, depth planes, and refining image regions. - Added region refinement logic to enhance gesture masks using BEN2.
37 lines
1.6 KiB
Markdown
37 lines
1.6 KiB
Markdown
# 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](mesh-plane.md),或使用 [Remove Background / Upscale](animation.md) 逐帧处理。
|
||
|
||
实现中的深度场、坐标锚定和节点流程见 [Convert to Plane 实现原理](../internals/operators/convert-to-plane.md)。
|
||
## 分析分辨率与颜色
|
||
|
||
Depth 输入还受 Environment 区的 **Maximum AI Input Size** 约束,默认最大长边为 `2048 px`。超过时只会等比缩放模型分析输入;结果材质仍使用原始颜色图片,不会改用限制后的临时图。
|