Instructions for coding agents, and a quick start for new contributors. Human-oriented details are in CONTRIBUTING.md and INSTALL.md.
MapMap is a free video mapping software: it projects videos, images and colors onto shapes that the user distorts to fit real surfaces.
-
Language and toolkit: C++17 and Qt 6 (widgets, OpenGL, Qt Multimedia), built with qmake.
-
License: GNU GPL version 3.
-
Current version: see
MAPMAP_VERSIONinmapmap.pro.
macOS, with Qt 6 from Homebrew (run bash scripts/sh_install_deps_macos.sh once):
bash scripts/sh_build_macos.sh
GNU/Linux, with the packages listed in INSTALL.md:
qmake6 mapmap.pro
make -j"$(nproc)"
Windows: see INSTALL.md and the build-windows job in .github/workflows/build.yml.
bash scripts/sh_package_macos.sh
bash scripts/sh_package_linux.sh
The first one writes dist/MapMap-<version>-macos-<processor>.dmg, a disk image with MapMap and the Qt libraries it needs. It is for trying MapMap, not for a public release. With the Qt of the Qt Company, given with --qt-directory, the disk image runs on macOS 13 and later, on Apple Silicon and Intel. With the Qt of Homebrew, it may only run on the version of macOS it was made on. The second one writes dist/mapmap-<version>-linux-<processor>.tar.gz, the program without the Qt libraries. Both build the last commit in a clean copy of the sources; run them with --help for their options. The automated builds run them with --skip-build, once a change is in dev or master, or when asked to: gh workflow run build.yml --ref <branch>, or "Run workflow" on the Actions page of GitHub. A pull request is only built and tested.
The macOS disk image of sh_package_macos.sh is only signed ad hoc: macOS warns that the developer cannot be verified. A public release is made with another script, which signs with a "Developer ID Application" certificate and refuses to go on at the first doubt:
bash scripts/sh_release_macos.sh --qt-directory <dir>
It sends nothing to Apple. Once the disk image has been tried by hand, the maintainer has it notarized with --submit-to-apple. An agent never uses that option.
cd tests
qmake6 tests.pro
make
QT_QPA_PLATFORM=offscreen make check
The same commands run on macOS, Ubuntu and Windows for every pull request. A pull request whose checks fail is not merged.
-
The base branch is
dev. Never commit directly todevormaster. -
One branch per topic, cut from an up-to-date
origin/dev, namedtype-number-few-wordswith the GitHub issue number when there is one:fix-555-idle-cpu,feat-flip-horizontal. Types:feat,fix,doc,refactor,release. -
Rebase only. Never merge
devinto a branch, never a plaingit pull. Pull requests are integrated with "Rebase and merge". -
Every commit builds and passes the tests, not only the last one.
-
Commit messages and pull request titles are in English and start with a verb in the present tense, like an instruction:
Fix projects with a camera source failing to reopen (#542). WriteFix,Add,Remove, notFixed,Added,Removed. Name the issue when there is one. Older commits use the past tense: leave them as they are. -
One idea per commit. An unrelated change goes in its own commit.
-
An agent proposes its commits and waits for the maintainer's approval before committing, and never pushes or opens a pull request without being asked to.
-
No attribution line for an AI tool in commits or pull requests.
Whoever opens a pull request, a person or an agent:
-
Assigns it to the person who opens it.
-
Asks the review of another person who changed the same files in the last year, never the author: usually
sofianoraalex. -
Sets the milestone
1.0. -
Puts it in the column "Under Review" of MapMap Task Board (https://github.com/orgs/mapmapteam/projects/1).
-
When it changes what a person sees (a window, a dialog, a menu, a text of the interface), adds screenshots of each window that changed, in a comment. MapMap writes its settings on quit, and they belong to the person: save them before launching it for a screenshot, and put them back after.
The command /mm:open-pr of the mm plugin does all of this.
| Folder | Contents |
|---|---|
src/core |
The model: sources (Source.h: color, image, video, camera, Syphon), layers, the project reader and writer |
src/shape |
Shapes: triangle, mesh, ellipse |
src/gui |
The main window, the canvases, the property editors |
src/control |
Remote control: OSC (OscAction, OscInterface) and the MCP server |
src/app |
main.cpp: command-line options, start-up |
tests |
Unit tests (Qt Test), one Test*.cpp per area |
docs/informations |
Documentation shown inside the software (OSC commands, keyboard shortcuts) |
docs/extensions |
What MapMap reads of the ISF format, and what it adds |
resources/shaders |
The ISF shaders shipped with MapMap: Checker, Grid, Color Wheel |
scripts |
Build and release scripts |
-
A new OSC command adds cases to
tests/TestOsc.cppand a line todocs/informations/osc.md. -
A new setting is declared once, in the constructor of its class (see
src/core/Setting.h); it adds a case to the project round-trip test. Its id is in lowercase, with underscores between words (n_columns): it is its name in OSC addresses, in MCP and in project files. A setting that is renamed keeps its old name withformerId(), so that existing projects still open. An id that several files name, and its former names, are constants ofsrc/core/ProjectLabels.h. When a project gives both names, the new one is read; only the new one is written. -
A project file can be written by hand or damaged: reading it must never crash. Skip what cannot be read, with a warning.
-
A change of the project format updates
docs/project-format.mdin the same commit, and follows its principles and naming styles: keys in snake_case, types<provider>:<name>with names in kebab-case. -
A new source file starts with the licence header of the others, with one line per author and no email address:
* (c) 2026 Firstname Lastname.scripts/update-copyright.pywrites these lines from the history of git: every person who changed the file, with the years of their commits, by first contribution. It takes the names from.mailmapand leaves out the mass edits listed in.git-blame-ignore-revs(moves, namespaces, renamings across the code); add a mass edit there once it is indev, since its hash changes when it is integrated. Run the script before a release;--checklists the files that are not up to date. -
Follow the existing style: Qt coding style, two-space indentation, code and comments in English.
-
Document every public class and function. Give every number used in a calculation a named constant.
-
Text shown to the user goes through
tr(). The texts of a shipped shader are translated too: after changing one, runpython3 scripts/extract-shader-strings.py. -
A new kind of source is registered in
SourceTypeRegistry(src/core/SourceTypes.h), not added toMainWindow. -
In
CHANGELOG.md, the title of a section gives the version number before the date:## 1.0.0-beta.1 - 2026-11-23.
-
Project files (
.mmp) are JSON. The XML projects of MapMap 0.4 to 0.6 are converted byscripts/convert-xml-project.py. -
Settings are the user's own: never run MapMap with
--reset-settingson someone's machine without asking. -
Log messages go to the console window of the software and to
mapmap.login the system's temporary folder, not to the terminal. -
OSC listens on port 12345, on the local machine only unless the user allows the network. The MCP server is off unless a port is set in the preferences or with
--mcp-port. -
Opening a camera source turns on the user's camera.
-
Screenshots for a pull request, on GNU/Linux with GNOME:
scripts/sh_screenshot_linux.shruns MapMap on a hidden display, with settings of its own, and captures its windows, menus and tooltips without touching the user's screen, mouse or settings. Run it without arguments for its steps.
-
docs/manual/manual_en.rstdescribes MapMap as it was in 2014. -
docs/informations/CHANGELOG.html,CONTRIBUTORS.htmlandosc.htmlare leftovers: the software reads the Markdown files.