Nodes/ComfyUI_KubaNodes/kubakub frame guide (old)
ComfyUI Node

kubakub frame guide (old)

Perspective guide for frame in frame. Depth rules give regions a depth in metres: > 0 = a room or world behind the frame (the facade hides everything outside the frame, a window's mullions stay in front), < 0 = a 'parasite' sticking out of the facade towards the viewer. The guide shows side walls (shaded) and back / front faces as the viewer sees them; use it as the structure for generation, and the masks and quads to place media.

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub frame guide (old)
  • regions
  • viewer
  • matrix
  • guide
  • area
  • back
  • walls
  • frames_json
  • report
◄depth_rules►
◄default_depth_m0.0►
◄dim0.55►
◄window_hulltrue►
Categorykubakub/lab

Inputs (7)

NameTypeDefaultDescription
regionsKUBA_REGIONSThe facade regions (the same size as the viewer's matrix).
viewerKUBA_VIEWERFrom kubakub audience viewpoint: where the audience stands.
depth_rulesSTRING'<name wildcard> = metres', 'group:<g> = m', 'tag:<t> = m'. Later lines win. Negative = in front of the facade.
default_depth_mFLOAT0.0-100–1000Depth for regions no rule names; 0 = not a frame.
dimFLOAT0.550–1Dim the matrix outside the frames: 0.55 for looking, 0 when the guide is the input of a generation (the facade stays as it is).
window_hullBOOLEANtrueOn: a frame made of several parts (glass panes) is one opening, the gaps (mullions) stay in front. Off: the largest part only.
matrixoptIMAGEBackground of the guide (dimmed).

Outputs (6)

NameTypeDescription
guideIMAGEMatrix dimmed, frames drawn as the viewer sees them.
areaMASKPixels generation may change (window for rooms; frame, walls and front face for parasites).
backMASKBack faces (rooms) and front faces (parasites).
wallsMASKSide walls.
frames_jsonSTRINGPer frame: depth, scale, outline, back_quad (corner pin).
reportSTRINGThe frames with their depth and scale.