ComfyUI Node
Atlas Occlusion Mask π³
A ComfyUI node in Atlas/04 Β· Masks with 19 inputs and 2 outputs.
Atlas Occlusion Mask π³
- solve
- target_image
- primary_depth
- occlusion_mask
- coverage_mask
βpatch_azimuth_viewfront-right quarter viewβΊ
βpatch_elevation_vieweye-level shotβΊ
βpatch_distancemedium shotβΊ
βsource_azimuth_viewfront viewβΊ
βsource_elevation_vieweye-level shotβΊ
βflip_azimuthfalseβΊ
βdepth_modeldepth-anything/Depth-Anything-V2-Metric-Outdoor-Large-hfβΊ
βdeviceautoβΊ
βangle_threshold90βΊ
βdilate_px0βΊ
βsoft_edge_px0βΊ
βpower1.0βΊ
βocclusion_modesimpleβΊ
βdepth_bias0.05βΊ
βpatch_view_overrideββΊ
βexact_view_overrideββΊ
CategoryAtlas/04 Β· Masks
Inputs (19)
| Name | Type | Default | Description |
|---|---|---|---|
| solve | ATLAS_SOLVE | β | |
| target_image | IMAGE | β | |
| patch_azimuth_viewopt | COMBO | front-right quarter view | The LoRA azimuth target_image was generated at β should match whatever you'll later pass to AtlasAddPatchView for this image. |
| patch_elevation_viewopt | COMBO | eye-level shot | The LoRA elevation target_image was generated at. |
| patch_distanceopt | COMBO | medium shot | The LoRA distance target_image was generated at. |
| source_azimuth_viewopt | COMBO | front view | Which view your SOURCE photo already is, in the LoRA's absolute frame. Must match the value you'll use in AtlasAddPatchView. |
| source_elevation_viewopt | COMBO | eye-level shot | Elevation of the SOURCE photo in the LoRA's frame. |
| flip_azimuthopt | BOOLEAN | false | Must match the AtlasAddPatchView setting for this patch. |
| depth_modelopt | COMBO | depth-anything/Depth-Anything-V2-Metric-Outdoor-Large-hf | 10 options: depth-anything/Depth-Anything-V2-Metric-Outdoor-Large-hf, depth-anything/Depth-Anything-V2-Metric-Indoor-Large-hf, depth-anything/DA3METRIC-LARGE, depth-anything/DA3MONO-LARGE, depth-anything/DA3NESTED-GIANT-LARGE-1.1, Ruicheng/moge-2-vitl-normal, +4 |
| deviceopt | COMBO | auto | 4 options: auto, cuda, mps, cpu |
| angle_thresholdopt | FLOAT | 900β90 | Facing-angle gate in degrees for the PRIMARY camera's coverage. 90 (default) = only frustum/behind-camera/out-of-frame failures are masked. Lower values also mask surfaces too grazing to the primary. |
| dilate_pxopt | INT | 00β200 | Expand the white (missing) mask region by this many pixels. |
| soft_edge_pxopt | INT | 00β200 | Blur the dilated mask edge by this many pixels, for compositing. |
| poweropt | FLOAT | 1.00.1β8 | Gamma remap after blur; > 1 makes the patch contribution more solid near the feathered edge. |
| occlusion_modeopt | COMBO | simple | simple = Phase-1 frustum/frame/facing tests only (unchanged). depth_shadow = additionally detect surfaces hidden behind NEARER geometry from the primary's view (true MPTK camera-as-light shadow test, using primary_depth as the shadow map). Falls back to simple when primary_depth isn't connected. |
| primary_depthopt | ATLAS_DEPTH_MAP | AtlasDepthMap run on the PRIMARY/source photo β the shadow map for depth_shadow mode. Wire the same shared AtlasDepthMap the derive nodes already use. | |
| depth_biasopt | FLOAT | 0.050β1 | depth_shadow only: relative depth tolerance before a point counts as shadowed β guards against monocular depth-precision false positives. 0.05 = must be 5% farther than the stored depth. |
| patch_view_overrideopt | STRING | Optional: wire AtlasBlockoutViewport's patch_prompt output here β overrides the three patch_* dropdowns with π Extract Angle's snapped views, keeping this mask aligned with the same AtlasAddPatchView wiring. Errors loudly if unparseable. | |
| exact_view_overrideopt | STRING | Optional: wire AtlasBlockoutViewport's patch_exact output here (π's RAW orbit floats) β wins over patch_view_override and the dropdowns, flip_azimuth ignored, placing this mask's target camera IDENTICALLY to an AtlasAddPatchView driven by the same string (the shared never-drift contract). Errors loudly if unparseable. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| occlusion_mask | MASK | β |
| coverage_mask | MASK | β |