feat: Implement cutout tool and depth generation features

- Added a new cutout tool for selecting regions in images, allowing users to choose mesh shapes based on selected areas.
- Introduced depth generation capabilities for rasterized images, including normal data extraction.
- Created jobs for generating depth planes and region data, enhancing the AI data generation workflow.
- Developed a selection refinement process for cutout regions, improving accuracy in generated outputs.
- Established a new region module for handling rasterized image regions and their associated AI generation tasks.
- Enhanced node graph builders for asset generation, facilitating smoother integration of new features.
This commit is contained in:
2026-08-30 23:09:13 +08:00
parent 32bcd45d7b
commit 08309f719d
88 changed files with 4145 additions and 5639 deletions

View File

@@ -232,11 +232,24 @@ def refine_selection_property():
)
def cutout_normal_analysis_property():
return bpy.props.BoolProperty(
def cutout_normal_mode_property():
return bpy.props.EnumProperty(
name="Normal",
description="Use MoGe-2 to add a normal texture for the selected shape",
default=False,
description="Normal texture generated with MoGe-2",
items=(
("NONE", "None", "Do not generate a normal texture"),
(
"TANGENT",
"Tangent",
"Generate a normal texture relative to the image plane",
),
(
"OBJECT",
"Object",
"Generate a normal texture in Cutout object-local axes",
),
),
default="NONE",
)
@@ -255,7 +268,7 @@ def cutout_point_spacing_property():
class AnyImageSettings(bpy.types.PropertyGroup):
cutout_point_spacing: cutout_point_spacing_property()
cutout_normal_analysis: cutout_normal_analysis_property()
cutout_normal_mode: cutout_normal_mode_property()
cutout_refine_selection: refine_selection_property()
image_box_refine_selection: refine_selection_property()
image_lasso_refine_selection: refine_selection_property()