- Implemented `build_mesh_plane.py` to create a geometry node group for mesh planes with customizable parameters. - Created `build_shadeless.py` for a shader node group that displays color without scene lighting while preserving shadows and reflections. - Added `validate.py` to validate the integrity of the newly created node groups and their inputs. - Introduced `validate_cutout.py` to ensure the functionality of cutout node groups and their dependencies. - Developed `validate_mesh_plane.py` to test the mesh plane creation and its modifier settings.
1.1 KiB
1.1 KiB
去除背景
Remove Background 使用 BEN2 为 Image Empty 生成透明前景,不创建网格。
使用
- 选中 Image Empty。
- 在 3D View 中右键选择 AnyImage > Remove Background。
- 等待状态栏提示任务完成。
结果替换当前 Empty 的图片,对象 Transform、显示尺寸、Offset 和播放设置保持不变。单图结果会 Pack 到 .blend;视频或序列帧结果继续引用 Job 目录。
Alpha 处理
推理前,AnyImage 会用输入 Alpha 遮住透明区域中的 RGB。结果颜色仍来自源图,只采用 BEN2 生成的前景 Alpha;源图已有透明度时,两者会相乘。因此 Image Mask 或外部软件已经清理的范围不会被重新扩张。
当前入口不提供 BEN2 的额外细化参数。需要手动控制范围时,可以先使用 Image Box / Lasso,也可以在结果材质中继续调整 Alpha。
图片序列
Remove Background 支持单图、Movie 和 Image Sequence。处理帧数、偏移和播放起点见视频与序列帧。
任务与结果替换流程见 Remove Background 实现原理。