Milestones 3 and 4: models per marker ID, debug overlay, device test protocol #3
Loading…
Reference in a new issue
No description provided.
Delete branch "content-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Milestones 3 and 4. This PR is stacked on #1 (its base is
viewer-detection): merge #1 first, then this one retargets tomain.Milestone 3: content, models, debug overlay
viewer/public/content.jsonmaps marker IDs to models.js/content.jschecks it on load: an unknown key, model or field, or an ID out of 0–49, stops the viewer with the reason. An ID without an entry shows the axis gizmo, and the status says "no content".js/models.js): a cube, a torus knot, a planet with a ring and a moon, a crystal. Each stands on the marker and moves a little.?debug): ID, distance, FPS, the detection rate over the last second, detection time, and the camera and detection resolutions. With it on, the gizmo is drawn along with the model.ideal, so a laptop's webcam works too. The README says so.docs/model-ideas.mdanswers your question about which models to make: utilities (moon phase, globe with day and night, orrery, sun path), aviation (attitude indicator, flight replay), navigation (where did I park, activity in 3D) and playful ones (mascot, pet, snow globe, dice). They're sorted by what each needs: time only, location, phone sensors, or live data. Live data would change the privacy promise, so it's set out as options for you.Milestone 4: device test protocol
docs/device-tests.mdis for you to fill in. It covers setup, range by distance and lighting, angle, session length and the models..prgtoGARMIN/APPS, per Garmin's "Your First App". On macOS,tools/build-watch.shbuilds it with your local SDK. It now runs with bash 3.2 and BSDcp, and redirects Java's home only on Linux.wristmark-viewer, serving this branch's image. HTTPS comes from studio's forwarding, so the phone can open the camera. Add?size=<measured mm>&debug.Per the spec, I'm stopping here until you have results.
Verified
viewer/test: 8 tests pass, 2 in Node and 6 in Chromium under the production CSP:data-modelisknot, and the overlay lines appear;content.jsonpasses its check, and every model's bounding box stands on the marker's face.tools/smoke-test.shnow also checksmodels.jsandcontent.json, served as JSON. It passes on the image.tools/build-watch.shbuilds against a read-only SDK and against a writable one.Not verified
Open questions
docker rm -f wristmark-viewer).ec73c90849eb27f7b8cc