InsideGubbio AR — Location-based augmented reality platform for Gubbio monuments#1
InsideGubbio AR — Location-based augmented reality platform for Gubbio monuments#1
Conversation
…ument overlays Co-authored-by: gablilli <167802854+gablilli@users.noreply.github.com>
… error logging Co-authored-by: gablilli <167802854+gablilli@users.noreply.github.com>
|
@copilot fantastico! fixa il tasto indietro per tornare alla home; inoltre tornare alla visione dell'ar almeno su iphone quando si ha aperta la descrixione del monumento non è semplice. inoltre ci sono i personaggi che compaiono o no? se no metticeli proprio come corpi in ciò che l'utente inquadra |
…-body character figures in AR Co-authored-by: gablilli <167802854+gablilli@users.noreply.github.com>
Co-authored-by: gablilli <167802854+gablilli@users.noreply.github.com>
Fixato tutto nel commit
|
Geolocation-aware AR webapp that overlays audio guides, historical narratives, and animated decorations on Gubbio's monuments via the device camera. Design derived from insidegubbio.framer.website.
Architecture
MonumentService(js/monuments.js) — Loads monument/route data fromapi/monuments.json, exposes proximity queries using Haversine distance.AREngine(js/ar.js) — Manages camera stream (getUserMedia), geolocation watch, per-monument HUD rendering, audio playback, and a canvas-based particle system.ARApp(js/app.js) — View lifecycle, navigation, wires geolocation callbacks to monument detection.Monument data (
api/monuments.json)6 landmarks with GPS coordinates, proximity radius, category, epoch, description, audio path, and a historical character (name, role, greeting). 3 curated routes.
AR overlay features
assets/audio/; gracefully handles missing filesHow proximity works
Each monument defines a
radius(meters). Users can also bypass geolocation by selecting a monument from the explore view, which opens AR in demo mode.Navigation
#home,#explore,#ar, and#ar/{monument-id}for direct monument linksContent slots
Audio files and images are referenced but not included — drop MP3s into
assets/audio/matching the filenames inmonuments.json. Descriptions and character dialogue are editable directly in the JSON.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.