Create interactive projection mapping
create_interactive_projection_mappingBuild an interactive projection mapping rig using a webcam and projector. Supports camera input or synthetic preview, motion detection, blob markers, and adjustable visuals with corner pin mapping and live controls.
Instructions
Build a synthetic-safe interactive projection mapping rig for a USB webcam plus projector: camera/synthetic/existing TOP input, frame-difference motion field, placeholder blob/post-it mask, cyan dot and magenta card visual TOPs, manual Corner Pin projection mapping, debug switch, live controls, and an out1 Null TOP. Defaults to source='camera' for installations, but source='synthetic' previews without camera permission. Returns output/debug paths and explicit warnings for camera, blob tracking, and physical calibration states.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the generated interactive projection mapping Base COMP. | interactive_projection_mapping |
| parent_path | No | Parent COMP where the interactive projection mapping system is created. | /project1 |
| source | No | Input source: a USB camera, a self-animated synthetic TOP, or an existing TOP pulled through a Select TOP. | camera |
| existing_top_path | No | Absolute TOP path required when source='existing_top'. | |
| camera_index | No | USB/webcam device index used when source='camera'. | |
| fallback_to_synthetic | No | If camera creation fails, build a synthetic source so the rig remains previewable. | |
| interaction_mode | No | Interaction branch to prioritize. The first slice always keeps motion available. | hybrid |
| analysis_resolution | No | Square working resolution for cheap motion/blob analysis. | |
| output_width | No | Projection output width in pixels. | |
| output_height | No | Projection output height in pixels. | |
| particle_count | No | Target count for the cyan dot field. This MVP uses it as visual density metadata. | |
| card_count | No | Target count for magenta card blocks. This MVP uses it as visual density metadata. | |
| motion_sensitivity | No | Gain over the frame-difference motion field. | |
| repel_radius | No | Normalized radius metadata for hand/motion repulsion. | |
| trail_decay | No | Feedback persistence for visual trails. | |
| blob_threshold | No | Threshold used by the placeholder blob/post-it mask branch. | |
| max_blobs | No | Maximum blob slots reserved for the later marker-tracking branch. | |
| dot_color | No | Cyan dot color as #rrggbb. | #8ff4f2 |
| card_color | No | Magenta card color as #rrggbb. | #ff2f9a |
| background_color | No | Dark projected background color as #rrggbb. | #05100e |
| projection_brightness | No | Final Level TOP brightness before out1. | |
| debug_view | No | Which branch the debug switch shows initially. | final |
| expose_controls | No | Expose live controls for calibration/debug/performance tuning. |