ComfyUI Node
kubakub projector blend
Several projectors on one building: where their pictures overlap on the model, each one fades out towards the border of its own picture, so the light adds up evenly. Connect the scene of one kubakub scene render per projector (same file, each with its own kubakub projector). Gives one blend mask per projector, in that projector's picture size: multiply your frames with it, or load it as the blend mask in the media server.
kubakub projector blend
- scene_1
- scene_2
- scene_3
- scene_4
- mask_1
- mask_2
- mask_3
- mask_4
- preview
- report
◄ramp0.100►
◄gamma2.20►
Categorykubakub/3d/scene
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| scene_1 | KUBA_SCENE | Projector 1: the scene of its kubakub scene render. | |
| scene_2 | KUBA_SCENE | Projector 2. | |
| ramp | FLOAT | 0.1000.005–0.5 | How far from its border a picture reaches full strength, as a share of its short side. Larger = softer blends (the overlap must be at least this wide). |
| gamma | FLOAT | 2.201–3 | The projectors' gamma: the masks are made so that the light adds up, not the pixel values. 1 = masks in linear light. |
| scene_3opt | KUBA_SCENE | Projector 3. | |
| scene_4opt | KUBA_SCENE | Projector 4. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| mask_1 | MASK | Blend mask of projector 1 (its picture size): 1 = full, less in overlaps. |
| mask_2 | MASK | Blend mask of projector 2 (its picture size). |
| mask_3 | MASK | Blend mask of projector 3. Nothing connected to scene_3: all white (1) at the size of projector 1, so multiplying changes nothing. |
| mask_4 | MASK | Blend mask of projector 4. Nothing connected to scene_4: all white (1) at the size of projector 1. |
| preview | IMAGE | One picture per projector, at the size of the first: the clay with what it lights alone and what it shares (orange). |
| report | STRING | Per projector: how much of the model it lights alone and shares. |