PROJECTION MAPPER v2.4.3 - plain-English guide ================================================ NEW IN v2.4.3 ------------- * Fix: the projector window no longer opens on a guessed monitor at launch. It now auto-opens ONLY on the display you last used for the projector (matched by position and size). The display you pick in step 1 is remembered as soon as you choose it, and again when you press Open on projector. If nothing is remembered yet, it does not open anything and the log says so. NEW IN v2.4.2 (fixes from your real-room test) ---------------------------------------------- * Gemini detection no longer fails on "Bad control character in string literal": the answer is now read tolerantly (line breaks inside text, code fences, trailing commas, or as a last resort the label/box pairs are pulled out directly). * False "calibration: the projector window did not respond" error fixed: the app now waits longer and retries before giving up, ordered messages to the projector window are never merged, and a stale red error clears when calibration succeeds. * The projector window now starts by itself when the app opens, on the same monitor as last time (matched by position and size; first non-main display if unknown), and asks for full screen (double-click or any key/click in it also goes full screen; F toggles). It never auto-opens on your only screen unless that is where you last used it. Untick "Start the projector window automatically" in step 1 to turn it off. * Projector window no longer goes "quiet" when Windows thinks it is hidden or on another monitor (this made the correction check and calibration time out mid-session): background throttling is off for it, and it now confirms receipt even if drawing is paused. * The Chrome warning bar "unsupported command-line flag --enable-unsafe-webgpu" is gone (the AI runs on the CPU path, no GPU flag needed). NEW IN v2.4.0: ROOM MODE REWORK, SMARTER DETECTION, AUTO SETUP, CORNERS ----------------------------------------------------------------------- FIXES * "ERROR pub failed ... Failed to fetch": the control window could not reach the app's own background program (usually because it had been closed or swapped by an update while the old window stayed open). The window now retries quietly and only shows a red error when the program is really gone, then tells you plainly to close and reopen the app (project is autosaved). * "Found 1 objects (1 wall)": the quantised AI model can return a blank result on some graphics cards. The AI now runs on the CPU path (tested, 1-2 s a pass) and re-runs on CPU by itself if a GPU result ever looks blank. AUTO SETUP (top of the left panel, works in House and Room mode) One tap: opens the projector window, starts the webcam (or uses the phone picture / loaded photo), blacks out the projector and takes a CLEAN picture, auto-calibrates, runs the AI detection, composes scenes. Each step shows done or skipped, and it stops with a plain reason if something is missing. ROOM MODE (House | Room switch) is now its own interface: * Room guide checklist (projector, picture, calibration, objects, scenes). * Room wording and Room quick-idea chips, "Room mood" buttons (Haunted, Cozy Christmas, Party, Calm), show/hide object types, Auto-orient selected. * House-only buttons (Demo house, house detect) are hidden in Room mode. SMARTER ROOM DETECTION * Dim rooms: contrast/brightness is normalised before the AI looks. * Small objects: 5 passes (whole picture plus 4 zoomed tiles). * Wooden shelf boards over a fireplace are named "Mantel"; tiny "mirror" blobs are treated as picture frames; walls/shelves stay upright, frames and mirrors may tilt up to 25 degrees (tilt follows the object's edges). * With a Gemini key saved (Settings), Detect also asks Gemini to find mirrors, picture frames, fireplace, mantel, TV, windows, doors, shelves and curtains BY NAME, boxes them tightly and orients each box from its own edges. This is the strongest option for dim, cluttered rooms. Without a key the built-in AI is weaker: expect to add or fix some objects by hand. CORNERS (Room tab, "Split walls at room corners") The wall is split at the strongest vertical brightness steps (room corners) into separate wall planes. Each plane gets its own perspective quad that shares the corner edge, and an effect assigned to the planes runs continuously across the corner. It is a best guess from one photo: if a plane looks off, drag its corners (they are normal editable surfaces). HONEST LIMITS: Gemini detection and the Windows EXE are untested on real hardware; corner planes use brightness steps, so strong shadows or a very flat corner can fool them; room photos taken while effects are projecting confuse the AI (Auto setup blacks the projector first). NEW IN v2.3.0: ROOM TAB + PHONE CAMERA ----------------------------------------------------------------------- ROOM TAB (House | Room switch at the top of the left panel) 1. Get a picture of the room: load a photo, use the webcam, or use your phone (below). 2. Room tab > "Detect room objects". The AI finds mirrors, picture frames, the fireplace/mantel, windows, doors, shelves, curtains, furniture, floor, wall and ceiling. Each rectangular object gets a rectangle fitted to its own edges, so an effect on a tilted frame is tilted the same way. That is the "auto orient". 3. Room scenes are composed for you: watching eyes in picture frames, a swirling portal in mirrors, fire in the fireplace, a mouth in doors, fog on the wall. A Christmas version glows the frames and warms the fireplace. Buttons: "Compose room scenes" (re-roll), "Demo room" (try without a photo). 4. Two new effects: Mirror portal (swirl + ripples where motion is seen) and Picture frame glow (neon light chasing round the frame). Theme "Room". 5. Pop-in scare scene works in rooms too (mirror flash, frame eyes, fireplace flare). 6. TVs/screens are found but hidden by default so you never light up a TV. HONEST DETECTION NOTES * Method: SegFormer-B0 (ADE20K, 150 object classes) runs on your GPU (CPU fallback), every object type is split into separate objects, and a minimum-area rotated rectangle is fitted to each one. * There is no "mantel" class in the model. A mantel/mantelpiece is found as "fireplace" (works well on a photo). Picture frames are found as painting / poster / bulletin board. Oval portraits are sometimes labelled mirror and vice versa: rename or reassign in the surface list. * Small objects (small frames, far away) can be missed. Use higher Detail, a closer or brighter photo, or "+ Rectangle" to add one by hand. * Round mirrors become their bounding rectangle, effects will fill the rectangle. Use feather / "Draw shape" for exact outlines. PHONE CAMERA (Android or iPhone, no app to install) * Step 2 > "Phone camera". The app shows a web address (https://192.168.x.x:8443/...). Open it in Chrome on your Pixel (same Wi-Fi as the PC). * Chrome warns the certificate is not trusted. That is the PC's own one-time certificate: tap Advanced > Proceed. If Windows Firewall asks, allow Private networks. * On the phone: "Take a photo" sends a full-quality photo. "Start live video" streams about 5-8 frames/second (keep the phone screen on). * In the app: "Use phone picture" makes the latest phone picture the room/house picture. "Use phone as camera" feeds the stream to the auto-calibration and motion watching instead of a webcam (works but is delayed; prop the phone still). * Safety: off until you press the button; the link has a random key; only the phone page and frame upload are open on your network; stays on your local network only; press "Stop phone link" when done. NEW IN v2.2.0 (install it with Check for updates) ------------------------------------------------- Fixes: * The scare scene no longer triggers itself: motion watching pauses while a scare plays and for 2.5 seconds after (the animation looks like movement to the camera). * AI scene names are cut at a whole word instead of mid-word. * Latitude / longitude boxes in the Schedule section show the full number. New: * Quick ideas: six one-click prompts above the AI scene box. * Shuffle: plays the scenes in a new random order each round. * Scare counter in the Reactive section. NEW IN v2.1.0: CHECK FOR UPDATES -------------------------------- In the control window, section "Updates", click "Check for updates". If a newer version is on wadequestbuilds.pages.dev, click "Download and install". The app downloads it, checks its SHA-256 fingerprint, keeps your old version in a folder called "backup", swaps in the new one and restarts itself. Your settings.json (Gemini key), projects and content are not touched. * It only contacts the internet when YOU press the button, and only your own site (wadequestbuilds.pages.dev, https). Gemini calls (optional) are the only other internet use. * If anything goes wrong (no internet, fingerprint mismatch, folder not writable) nothing is changed and the red message explains why; it is also in the log. Windows may show the SmartScreen prompt once for the new version. * This v2.1.0 is the first version with the button. Older versions (v2.0.0 and v1) have to be replaced by hand once. * Not tested on a real Windows PC yet; tested here on Linux with a local test site (check, install, restart, backup, settings kept, bad fingerprint refused). WHAT'S NEW IN v2 (short version; v2.1.0 only adds the updater above) -------------------------------- * AI scene builder: type "haunted house that watches trick-or-treaters" and it builds scenes that fit YOUR house. Windows become eyes, the door becomes a mouth, the garage gets a jack-o-lantern, the roofline glows. * It reacts: with the webcam running it sees people move. Eyes follow them, a spotlight chases them, and a SCARE scene plays when someone walks up. * Optional Gemini key (Settings section) for smarter scenes and generated pictures. Totally optional. Without it everything works offline. * 25 upgrades, listed below. AI SCENE BUILDER (section "AI scene builder") ---------------------------------------------- 1. Get your surfaces in first (AI detect, or Demo house). 2. Type what you want. Words it understands: spooky, ghost, witch, slime, pumpkin, blood, spider, bats, moon, fire, storm, fog, monster, alive, Christmas, snow, cozy, candy, gift, aurora, twinkle, party, calm, wild, and colours (red, orange, green, purple...). Put words in "quotes" to show them as a banner on the garage, for example "HAPPY HALLOWEEN". Say "countdown" for a days-until banner. 3. Click "Build scenes". Click "Another take" for a different version, or "Replace all" to throw away the old scenes first. 4. "Living house + scare scene" adds two special scenes: the Living house (windows = watching eyes, door = hungry mouth that opens when someone moves) and a SCARE scene that only plays on motion. Engines: with a Gemini key it asks Gemini to design the scenes (it is told your surfaces and the effect list; anything it makes up is replaced). With no key, or if Gemini fails, the built-in composer does it, offline, instantly. "Make a picture for the selected surface" uses Gemini image generation (needs a key; Google may require a paid plan for image models) and drops the picture on that surface with a gentle breathing motion. GEMINI KEY (section "Settings: Gemini key") -------------------------------------------- 1. Get a free key at aistudio.google.com/apikey (no card needed). 2. Paste it, click Save. Click "Test connection": it checks the key and makes one tiny test request. 3. Click "Find free models": it tries the available models on your free quota and picks one that works (it prefers the light, cheap ones). Google renames models often, so this finds the current ones instead of guessing. 4. Where it goes: the key is saved in a file called settings.json next to the program (only you can read it). The program only ever sends it to Google (generativelanguage.googleapis.com). It is never shown again in the window (only the last 4 characters). "Remove key" deletes it. Without a key the whole app works; the scene builder uses the built-in composer. The program makes NO other internet connections. REACTIVE (section "Reactive: motion, sound, music") ---------------------------------------------------- * Start the webcam (step 2), tick "Watch for motion". The little graph shows how much movement it sees. Walk in front of it to test. * Keep the camera steady. The projector's own animation can look like movement to the camera. If the scare fires with nobody there, lower Sensitivity. It needs 3 moving frames in a row, and waits (default 20 s) between scares. * "Test scare now" plays the scare scene without needing motion. * Effects marked Reactive: Watching eye (looks toward people), Hungry mouth, Motion spotlight, Scare flash. These only react while motion watching is on. * Day/night: the camera cannot judge daylight while the projector is on, so use the Schedule section: start at sunset (works out sunset for your latitude/longitude, set to El Cajon by default) until a time you choose, on the days you tick. * Music: add an mp3/wav in step 9, pick it, click Play. "Pulse brightness with sound" uses the microphone to make the light beat with noise. THE 25 UPGRADES (numbered changelog) ------------------------------------- 1. Undo / redo (buttons, Ctrl+Z / Ctrl+Y). 2. Keyboard shortcuts (press F1 in the control window for the list). 3. Duplicate surface (copies its content in every scene). 4. Lock surface (no accidental dragging or deleting). 5. Layer order: bring forward / send back. 6. Live scene control: prev / next / pin / resume playlist. BUG FIX: in v1 the box "hold on the scene I'm editing" froze the projector as well. Now it only changes your preview. The projector only holds a scene when you press "Pin on projector". 7. "Flash on projector" to find which surface is which. 8. Export / import scene packs, matched to any house by surface type. 9. Schedule by weekday and time, with "start at sunset". 10. Auto-start: opens the projector window (and webcam, if needed) when the app starts. 11. Output sharpness (full / 75% / 50%) for weaker GPUs. 12. Pause preview (Space). 13. Five new effects: Bats, Blood moon, Embers, Icicles, Ornament bokeh. 14. Text banner content (scrolling or still). 15. Countdown banner (days until Halloween / Christmas). 16. Picture animation: breathing, flicker, drift for your own pictures. 17. Music playback. 18. Sound-reactive brightness (microphone). 19. Webcam motion sensing with live graph. 20. Scare scene that plays on motion, with a cooldown. 21. Four reactive characters (watching eye, hungry mouth, motion spotlight, scare flash). 22. Calibration retries dots the camera missed. 23. Fine calibration grid (20 dots) and a per-dot error report. 24. Camera exposure lock during calibration (if the camera allows it). 25. Drift readings are median-filtered, plus a drift history graph. Plus: the AI scene builder and Gemini settings (not counted above). HOW IT COMPARES TO THE ILLUMIBOT KIT ------------------------------------ Illumibot ($400 box + phone app) works as "Point, Prompt, Play". Matched: guided setup flow; automatic camera alignment and manual corner pinning; AI picking of surfaces (editable); scenes and a scheduler with weekdays and a time window; fades between scenes; audio; saved setups. Exceeded: keeps itself aligned while running (live webcam drift correction); reacts to people (motion scares, follow-the-movement characters); builds scenes per surface type (windows=eyes, door=mouth) instead of one picture over a mask; free; works fully offline; hand-editable warp of every surface; Halloween and Christmas content built in. Not possible in a free local app: Illumibot's cloud AI artwork and video quality (the free local composer uses built-in effects; Gemini pictures are available with your own key but are still, at best, still pictures); the licensed AtmosFX decoration library; multiple projectors in sync; a phone app; the HDMI appliance with offline cloud sync; community scene sharing; projector power on/off control. WHAT HAS NOT BEEN TESTED ON REAL HARDWARE ----------------------------------------- Tested here: the math (sunset, schedule, homography), the scene composer, the shaders and the screens in a headless browser. NOT tested: the Windows EXE itself, a real webcam and projector, motion detection while projecting, camera exposure lock, microphone reactivity, and every live Gemini call (Test connection, scene design, picture generation). Please try those and send screenshots of the log (Copy log) if anything fails. ----------------------------------------- THE BASICS (from v1) ----------------------------------------- What it is ---------- A Windows program that turns your projector into a house-decorating machine. Point the projector at the front of your house, and the app puts spooky (or Christmas) animations exactly onto the windows, door, garage door, roofline, trees and walls, with a hole cut out for each window so nothing spills over. It uses your laptop's graphics card (your Nvidia GPU) to draw everything, and a small AI model to find the windows, doors, walls and trees in a photo for you. Nothing to install. Just run ProjectionMapper-v2.2.0.exe. (It needs Microsoft Edge or Google Chrome, which Windows 10/11 already has.) First time starting it ---------------------- 1. Double-click ProjectionMapper-v2.2.0.exe. Windows may say "Windows protected your PC" because the program is new. Click "More info", then "Run anyway". 2. A control window opens on your laptop screen. 3. Plug in the projector. Press Win + P and choose "Extend". Quick tour (try this first, no camera needed) --------------------------------------------- 1. Step 1, "Projector display": pick the projector in the list, click "Open on projector". A black window appears on the projector, fullscreen. Click "Test pattern": the red border should touch all 4 edges. 2. Step 2: click "Demo house". A pretend house shows up. 3. Step 6: click "Halloween preset" or "Christmas preset". The house lights up on the projector. Each preset has several scenes that play one after another. Using your real house --------------------- There are two ways. Webcam is automatic. A photo needs a little dragging. A) With a webcam (best) 1. Place the webcam where it can see the whole front of the house. Put it on something steady. Do not move it afterwards. 2. Step 2: pick the webcam, click "Start webcam", and allow the camera when asked. 3. Wait until it is fairly dark (dusk is best). 4. Step 3: click "Auto-calibrate with webcam". The projector flashes 12 dots one by one (about 15 seconds). The webcam finds them and learns how the projector lines up with your house. It tells you how accurate it is. 5. Step 4: click "Detect walls, windows, doors, roof, trees". The AI draws outlines on the picture. (The webcam picture becomes the house picture.) 6. Fix anything it got wrong (see "Editing" below). B) With a photo (no webcam) 1. Step 2: "Load photo..." and choose a straight-on picture of the house. 2. Step 4: run the AI detect. 3. Step 3: click "Manual photo alignment". Switch to Projector view. A see-through copy of your photo is projected onto the house. Drag the 4 yellow corners until the projected picture lines up with the real house. Click the button again when done. Editing (the AI is never perfect) --------------------------------- Click a surface in the list or in the preview. - White dots = the outline. Drag to move. Double-click an edge to add a dot. Right-click a dot to remove it. Hold Alt and drag to move the whole shape. - Colored squares = the 4 corners the animation is bent to. Drag to fix the fit on slanted or odd surfaces. - "House picture view" edits on the photo. "Projector view" edits what the projector actually shows, which is handy for fine nudging while you stand outside looking at the house. - "+ Rectangle" and "+ Draw shape" add your own surfaces. Delete key removes. What can play on a surface -------------------------- Halloween: flames, lightning storm, ghostly fog, toxic slime, pumpkin glow, jack-o'-lantern face, haunted window with a moving silhouette, spider web, floating ghosts, dripping blood, glowing eyes in the bushes, creepy heartbeat, glowing roofline outline. Christmas: falling snow, twinkle lights, candy cane stripes, aurora, red and green chase, warm window glow, gold glitter, gift wrap with bow (great for a garage door), starry sky, roofline bulbs that chase, glowing outline. Your own videos and pictures: click "Add files..." in step 9 (mp4/webm/jpg/ png). Then choose them in a surface's content list. They are stored in the "content" folder next to the EXE. You can change colors, speed, size and brightness for each surface. Scenes and playlist (step 6) ---------------------------- A scene says what every surface plays. Add as many scenes as you like. With "Play scenes in order" ticked, the show cycles through them and fades between them. While you edit, "hold on the scene I'm editing" keeps the preview on the scene you are working on. Live error correction (step 7) ------------------------------ Projectors get bumped, tripods sag, wind shakes things. When this is on, the projector briefly shows 12 small reference dots every few seconds (default 20). The webcam measures where they land compared with right after calibration, and the program shifts the whole show to cancel the drift. You will see a very quick flicker of dots. Tick "Black screen during check" for a more reliable but more noticeable reading. "Check now" does one right away. "Reset correction" undoes it. Needs: webcam running, calibrated with the webcam, projector window open. It assumes the WEBCAM stays still. If you bump the webcam, calibrate again. Other settings -------------- Step 8: brightness, gamma, and edge blend (only for two overlapping projectors). Step 10: save and load projects (stored in the "projects" folder). Your work is also saved automatically, and restored the next time you start. Blackout (step 1) turns the whole show off instantly. Folders next to the EXE ----------------------- content\ your own videos/pictures projects\ saved projects projection-mapper.log what the program is doing. If anything goes wrong, send a screenshot of the log (step 10, bottom of the left panel) or this file. browser-profile\ the control window's settings and camera permission. If something does not work -------------------------- - Projector window is on the wrong screen: Close it, pick another display in step 1, press Open again. Or click in it and press F for fullscreen. - Only one display listed: press Win+P, choose Extend, then "Refresh". - "Calibration failed / saw only N dots": make the area darker, aim the camera so it sees the lit house, lower the webcam's auto-exposure if it has a setting. - Camera asks permission every time: click Allow once; it remembers. - AI says it ran on CPU: that is normal and still takes only a few seconds. - Red banner at the top = an error. It is also in the log. - The program closes by itself when you close the control window. Honest limits ------------- - Houses are not flat. Per-surface fit (step 3) helps. Large depth differences (porch vs. wall) may need a nudge of the colored corner squares. - The AI knows 150 common things (wall, window, door, tree, grass...). It does not know "garage door" by name; it guesses from shape. Roofline comes from the top edge of the biggest wall area. - Daylight washes out a projector. This is for after dark.