ComfyUI Node
kubakub scene measure
Real distances from the 3D scene: per pixel of the projection view the distance to the projector, the angle it hits the surface, the size of one matrix pixel on the building, the relative brightness and the offset from the wall; per region the same as medians plus area (written into the regions, report as a table). Also a viewer (for frame in frame) with the real facade width and your audience spot for frame in frame.
kubakub scene measure
- scene
- regions
- regions
- viewer
- map
- table
- report
- raw
◄viewer_x_m0.0►
◄viewer_distance_m15.0►
◄eye_height_m1.70►
◄mapbrightness►
◄grazing_deg60►
Categorykubakub/3d/scene
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| scene | KUBA_SCENE | From kubakub scene render. | |
| viewer_x_m | FLOAT | 0.0-10000–10000 | Audience spot along the wall, from the centre of the projector frame (m). |
| viewer_distance_m | FLOAT | 15.00.5–10000 | Audience distance from the main wall (m). |
| eye_height_m | FLOAT | 1.700–1000 | Eye height of the audience above the ground (m). |
| map | COMBO | brightness | Which measurement the map output shows in colour: brightness (1 = a typical facade), distance to the projector, incidence angle, mm per matrix pixel, or offset from the main wall. |
| grazing_deg | FLOAT | 600–90 | Regions hit at a steeper angle than this get the tag 'grazing' (stretched, dim projection). |
| regionsopt | KUBA_REGIONS | Regions at the projection view's size (e.g. regions from id renders with the clay as matrix). They get the measurements and a 'grazing' tag. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| regions | KUBA_REGIONS | The regions with a 'scene' entry each (+ grazing tag). Without regions connected to this node the output is empty: leave it unconnected then. |
| viewer | KUBA_VIEWER | Facade width / bottom from the projector frame on the wall, viewer at the audience spot. |
| map | IMAGE | The chosen measurement as a colour map of the projection view. |
| table | STRING | Per region: distance, offset, incidence, mm per px, brightness, area, viewer distance (tab separated). |
| report | STRING | Projector frame on the wall, median measurements, the viewer and the map's colour range. |
| raw | MASK | The chosen measurement as a grey mask, not colourised: 0 = the lowest value of the colour range, 1 = the highest, 0 outside the building. The report says which values (metres, degrees, mm ...) 0 and 1 stand for. |