Nodes/ComfyUI_KubaNodes/kubakub scene preview
ComfyUI Node

kubakub scene preview

Shows how the projection will look to the audience: the matrix (image or video frames) projected from the file's camera onto the model and seen from audience spots. Where the projector does not reach a surface the audience sees, it stays dark (projection shadow, also as a mask). The mapping is computed once per spot, so video frames are cheap. One Blender render per spot (cached).

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub scene preview
  • scene
  • matrix
  • background
  • clay_color
  • viewer
  • preview
  • shadow
  • views
  • report
  • scene
◄spots0, 20, 1.7 -15, 12, 1.7 12, 8, 1.7►
◄lens_mm20►
◄width1280►
◄height720►
◄ambient0.15►
◄gain1.00►
◄physical1.00►
◄shaderclay►
Categorykubakub/3d/scene

Inputs (13)

NameTypeDefaultDescription
sceneKUBA_SCENEFrom kubakub scene render.
spotsSTRING0, 20, 1.7 -15, 12, 1.7 12, 8, 1.7One audience spot per line: x along the wall from the frame centre, distance from the wall, eye height (m).
lens_mmFLOAT206–300Audience camera lens (36 mm sensor); 20 = wide, 35 = natural.
widthINT128064–8192Width of each audience view, in pixels.
heightINT72064–8192Height of each audience view, in pixels.
ambientFLOAT0.150–1Brightness of the unlit building (clay) around the projection.
gainFLOAT1.000–4Brightness of the projected image; 1 = as it is, 2 = twice as bright.
physicalFLOAT1.000–11 = surfaces hit at a steep angle or far away get darker, as with a real projector; 0 = flat.
matrixoptIMAGEMatrix image or frames (resized to the projection view if needed). Nothing connected: the clay views alone, without a picture.
backgroundoptIMAGEBehind the building (still or frames, looping), scaled to cover the view.
clay_coloroptCOLOR#f2f2f2Colour of the clay: the building and its surroundings where no picture lands. Almost white by default; pick the stone's colour for a closer look.
shaderoptCOMBOclayHow the model is drawn where no picture lands: clay, wireframe (its edges as lines in the clay colour, not dimmed by ambient) or clay with the edges on it.
vieweroptKUBA_VIEWERThe audience spot of kubakub scene measure / audience viewpoint / project settings, one spot for all nodes. Connected: it replaces the typed 'spots' (one view from there).

Outputs (5)

NameTypeDescription
previewIMAGEPer spot all frames (spot-major batch).
shadowMASKPer spot: building the audience sees but the projector misses.
viewsIMAGEPer spot the clay view (no projection).
reportSTRINGPer spot: how much of the view is building and how much of it the projector misses.
sceneKUBA_SCENEThe scene with these viewpoints (spots, lens, size) -> kubakub scene relight with camera = previz: the lit picture from the same spot.