This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/dialog-summaries/2026-05-24-projectionmapping-wuu-calibration.md

2.9 KiB

2026-05-24 ProjectionMapping wuu Calibration Dialogue Summary

Project

Garage.

Machine

wuu, Windows, local ProjectionMapping work under C:\git.

User Goal

Run ProjectionMapping-webcam and step through projector calibration with screenshots at each stage.

Durable Context

  • Active working copy: C:\git\ProjectionMapping-webcam.
  • The copy is not a Git repository.
  • App launched successfully with run.bat.
  • Server was started in the app with localhost enabled on UDP 27015.
  • Two Optoma 1920x1080 displays were marked as local projectors; the BenQ primary monitor was left unmarked.
  • Kinect 2.0 was used as the active RGB-D camera.
  • Show RGB overlay and View through Kinect RGB worked and allowed manual visual alignment in the main viewport.
  • assets\models\screenMerc3.fbx was used as the screen object and marked trackable.
  • Manual RGB alignment was used because depth correspondences remained 0.
  • A close manual transform for screenMerc3 was:
Position: -0.400, -0.690, -3.400
Rotation: 359.300, 276.000, 0.300
Scale:    0.970, 0.970, 0.970

Calibration Result

  • Project calibration patterns changed the physical projector images.
  • Pattern capture completed and set Pattern captures = Ready.
  • Saved capture path: C:\git\ProjectionMapping-webcam\calibration_temp\Sun_May_24_20.58.26_2026.
  • Two projector directories were present, each with 46 image*.png files.
  • Contact-sheet inspection showed visible vertical and horizontal gray-code stripes, so the projected pattern/camera capture path was working.
  • Solver failed for both projector IDs:
Could not choose a unique projector pose seed. Scores: 0, 0, 0, 0
  • The app then crashed in ucrtbase.dll with exception 0xc0000409.

Local Code Change

After the crash, C:\git\ProjectionMapping-webcam\src\calibration\calibration.cpp was patched locally to:

  • log seed correspondence counts:
Projector '<id>' seed correspondences: decoded=<n>, on model=<n>
  • skip seed/solver when fewer than 8 valid model/projector correspondences remain;
  • log if calibration produces no valid results.

Release x64 rebuild succeeded after this change.

Next Actions

  1. Relaunch C:\git\ProjectionMapping-webcam.
  2. In Projection Mapping > Local projectors, mark only one Optoma as projector.
  3. Clear pattern captures.
  4. Capture patterns for that single projector.
  5. Run solver and inspect decoded vs on model correspondence counts.
  6. If one projector calibrates, repeat for the second.
  7. If decoded is high but on model is low, improve manual alignment or inspect camera/model coordinate assumptions.
  • projects/garage/status.md
  • projects/garage/repositories.md
  • projects/garage/agent-log.md
  • locations/wuu.md
  • problems/2026-05-24-projectionmapping-stereo-top-bottom-calibration-failure.md
  • skills/projectionmapping-manual-kinect-calibration.md