I'm building AR Menus, an AR menu for restaurants: diners scan a QR code and can place any dish on their table in augmented reality, straight from the browser. Here is how the pieces fit.
Stack
- Menu app: React 18 + Vite PWA,
@google/model-viewerfor 3D and AR,threeunder the hood - Dashboard: React + MUI, where restaurants upload dish photos
- API: Flask + Celery workers, PostgreSQL (Supabase), S3-compatible storage
- 3D generation: an image-to-3D service turns dish photos into a textured model
The pipeline
- The restaurant uploads a few photos of a dish.
- A background worker sends them to the image-to-3D service and polls until the model is ready.
- We export GLB for Android/WebXR and USDZ for iPhone Quick Look, and compress geometry and textures to keep each file small.
- The model is stored next to the dish, and the menu shows a "View in AR" button only once the model has loaded.
Lessons
- File size beats polygon count. Restaurant Wi-Fi is slow. Every dish has a budget.
- Real-world scale matters. A model without the right scale makes a burger look like a cake, so scale is checked on every dish.
- Load before you offer AR. Showing an AR button before the model was ready led to failed sessions; now the button appears only when the model is loaded.
- Different phones, different AR paths. WebXR on Chrome Android first, Scene Viewer as a fallback, Quick Look on iOS.
- Lighting sells food. A neutral studio HDR makes dishes look appetising instead of plastic.
What's next
Better lighting presets per cuisine and faster generation. If you want the non-technical version, I wrote a guide to what an AR menu is.
If you've shipped WebXR in production, I'd love to compare notes in the comments.