CardboardXR: a 3D-printed phone headset with room and hand tracking
Bren Poly's CardboardXR is a Unity phone app for a 3D-printed Google Cardboard-style viewer.
- Hardware:
- 3D-printed Cardboard-style viewer, Smartphone, 45 mm Cardboard v2 lenses
- Difficulty:
- Intermediate · Our suggestion
- License:
- Apache-2.0
- Creator:
- Bren Poly
Turn your phone into a VR viewer with room and hand tracking.
By Bren Poly
- Posted
What it does
Bren Poly's CardboardXR is a Unity phone app for a 3D-printed Google Cardboard-style viewer. It shows a separate view for each eye with lens distortion, tracks your movement around a room, shows the rear camera view, finds surfaces for virtual objects, and tracks hands for pinch controls, grabbing and a pointing ray. The README reports testing on a Pixel 9 Pro with ARCore and an iPhone 15 Pro with ARKit and LiDAR. The open-source app and repository use Apache-2.0; bundled third-party code, models and fonts keep their own licenses in THIRD_PARTY_NOTICES.md. The creator calls the print files free to download; the MakerWorld license name has not been verified.
What you need
- Runs offline
- Yes, per the source
- Difficulty
- Intermediate · Our suggestion
- License
- Apache-2.0 (source)
Parts
- Smartphone you already have (Tested: Pixel 9 Pro and iPhone 15 Pro. Android APK: ARCore, Android 10+, 64-bit, Vulkan.)
- 3D-printed viewer shell (MakerWorld model 3511377; access to a 3D printer.)
- Phone door and four TPU corner locators (MakerWorld plate for iPhone 15 Pro, Pixel 9 Pro or iPhone 16 Pro, or use the door generator for your phone. PETG door; TPU locators.)
- Pair of 45 mm biconvex Google Cardboard v2 lenses (About $5 for the pair, per Bren Poly's YouTube description.)
- MagSafe Peltier cooler and USB-C power bank (Creator's optional Pro model.) [optional]
- Unity 6000.6.8f1 with iOS module and Xcode (Needed for the iPhone source build only. Sign Xcode into an Apple ID; a free personal team is enough.) [optional]
- AI model or service
- MediaPipe hand tracking (source)
Part sources: Sources
Full instructions: View original
How it works
- Print the viewer shell from the MakerWorld files. Ready-made phone doors fit the iPhone 15 Pro, Pixel 9 Pro and iPhone 16 Pro. For another phone, enter its dimensions in the door generator, which makes 3MF and STL files in your browser. Print the door in PETG and the four corner locators in TPU. The outline, hinge and latch stay the same, so the door fits the standard shell.
- Fit a pair of 45 mm biconvex Google Cardboard v2 lenses. Bren Poly's YouTube description puts the lenses at about $5; that is not a price for the whole headset.
- Put your phone in the door. On Android, download the free APK from the v1.0.0 release and open it on an ARCore phone with Android 10 or later, 64-bit support and Vulkan. Android asks you to allow installation from your browser or file manager. There is no iPhone download yet: build from source using Unity 6000.6.8f1 and Xcode; a free personal team is enough.
- Start the app. The lobby shows the camera view and scans your room. Look around at the floor and any tables until it says it is done, or tap Skip. The phone tracks where you move as well as which way you turn, using ARCore on Android or ARKit on iPhone. This prepares head tracking and detected surfaces for the demos, so you can walk around rather than only turn your head.
- Look at something to aim, then pinch in front of the rear camera to click it. A screen tap works too. The phone finds your palm and then 21 points on your hand in 3D using a two-stage MediaPipe model that runs locally. In room-tracking demos, your hand or its pointing ray can also pick objects up.
- Try Air Paint to paint strokes in the air in your own room, Orb Rush to hit orbs with your hand, Portal to open a floor doorway into a night world, or 360 Video. You can also place cubes on scanned surfaces. Portal's camera view stays flat, with no sense of depth.
- Expect the phone to get hot. The app's thermal governor lowers how often it runs the hand models and caps the frame rate as heat rises. The creator's optional Pro model adds a MagSafe Peltier cooler and a USB-C power bank.
The app works offline. Camera images for tracking, passthrough and QR scanning are processed on the phone and never stored or sent anywhere. It only goes online when you ask it to follow a viewer QR short link or download a Google Drive video you added. Unity analytics, crash reporting and engine diagnostics are off.
Setup effort
Android is a print-and-APK build. The iPhone path requires a Unity/Xcode source build.
Limits and caveats
- Hands leave the rear camera's view: it covers about 68° across and 42° up and down.
- Passthrough is flat. One camera sends the same image to both eyes at one distance, so it gives no sense of depth.
- Expect heat. On the iPhone 15 Pro, hand tracking and heat prevent the app from holding 120 fps.
- On the Pixel 9 Pro, Android holds the display at 60 Hz while the camera runs.
Like this build? Get the weekly builds
Every Thursday: the 5 best gadget hacks you can copy. Free.
Built something? Submit a build
Credits and links
- Bren Poly: Creator of CardboardXR; original X video.
- Bren Poly — I Built a $5 Apple Vision Pro: Original YouTube video; lens price and optional Pro model.
- License: Apache-2.0 (source)
- Android v1.0.0 release — CardboardXR-1.0.0.apk
- Print files — MakerWorld model 3511377
- Phone door generator — custom 3MF and STL files
- Third-party code, model and font licenses
- Project homepage — interactive headset timeline
- Interactive iPhone architecture diagram
- Hack a gadget you already own — reuse guide
- More wearable builds
This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.
Featured? Add this badge
Built this? Paste the badge into your README. It links back to this page.
Markdown
[](https://hardwarelab.dev/projects/cardboardxr/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)HTML
<a href="https://hardwarelab.dev/projects/cardboardxr/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>Related builds
All 7 in Wearables



Tsixom Watch Buddy
A standalone AI watch on a Waveshare AMOLED ESP32.
- Waveshare ESP32-S3 2.06in touch AMOLED
Intermediate64
Sources
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/README.md#L3-L8
- makerworld.com/en/models/3511377-mobile-vr-viewer-for-modern-smartphones
- brenpoly.github.io/CardboardXR/door-generator/
- www.youtube.com/watch?v=XtNmiTohUcs
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/README.md#L49-L56
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/README.md#L43-L56
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/KNOWN_ISSUES.md#L5-L10
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/KNOWN_ISSUES.md#L21-L25
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/KNOWN_ISSUES.md#L64-L74
- github.com/brenpoly/CardboardXR/blob/2cb46a2eb641ede1729a40475337ae91a429eb7d/KNOWN_ISSUES.md#L76-L81