Skip to content

Commit 00022dc

Browse files
authored
Merge pull request #38 from xrdevrob/codex/maintenance-quest3s
Refresh QuestCameraKit and consolidate native QR tracking
2 parents b0fe1c6 + daac9e1 commit 00022dc

107 files changed

Lines changed: 2568 additions & 13145 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,9 @@ Assets/Plugins/** linguist-vendored
118118

119119
# Exceptions for .asset files such as lightning pre-baking
120120
LightingData.asset binary
121+
122+
# Pin the small development-only Quak release without another LFS download.
123+
Unity-QuestVisionKit/Packages/com.xrdevrob.quak-0.4.0-alpha.1.tgz binary -filter
124+
125+
# Imported copy of the same pinned Quak development layer for fresh-clone builds.
126+
Unity-QuestVisionKit/Assets/XR/APILayers~/AndroidLayers/arm64/libXrApiLayer_QUAK_injection.so binary -filter

‎.github/workflows/check-repo.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Repository checks
2+
on: [push, pull_request]
3+
permissions:
4+
contents: read
5+
jobs:
6+
clone-integrity:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
10+
with:
11+
lfs: true
12+
- run: python3 scripts/check_repo.py
13+
- run: git diff --check

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,8 @@ Assets/.avatar_sdk_sample_assets_importer.txt
118118
**/RuntimeActionBindings.json
119119
**/RuntimeActionBindings.json.meta
120120
.editorconfig
121+
122+
# Local Unity build/validation evidence is delivered separately from source.
123+
/*.log
124+
/scene-audit.txt
125+
/evidence/

‎CONTRIBUTING.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you’d like to see new functionality:
2828

2929
When submitting a pull request:
3030
1. **Fork the Repository:** Create your branch off of the `main` branch.
31-
2. **Follow the Code Style:** Maintain clarity and consistency with the existing code. We put a lot of emphazise on making the samples simple and easy-to-understand, so other devs can build cool things quickly!
31+
2. **Follow the Code Style:** Maintain clarity and consistency with the existing code. We put a lot of emphasis on making the samples simple and easy-to-understand, so other devs can build cool things quickly!
3232
3. **Test Your Changes:** Ensure your modifications work on a supported Meta Quest device (Quest 3 or 3s with HorizonOS v74 or later) and in Unity (recommended Unity 6).
3333
4. **Write Clear Commit Messages:** Describe what you’re changing and why.
3434
5. **Link Related Issues:** Reference any issues or feature requests that your PR addresses.
@@ -42,3 +42,11 @@ To set up QuestCameraKit on your machine:
4242
1. **Clone the Repository:**
4343
```bash
4444
git clone https://github.com/xrdevrob/QuestCameraKit.git
45+
cd QuestCameraKit
46+
git lfs pull
47+
python3 scripts/check_repo.py
48+
```
49+
50+
2. Open `Unity-QuestVisionKit` with the Unity version in `ProjectSettings/ProjectVersion.txt` and let Package Manager finish.
51+
3. Run the checks and the selected sample build described in [Testing](docs/testing.md).
52+
4. Keep credentials out of scenes and prefabs. Use a private development key only for local ImageLLM testing; production apps should call an authenticated backend.

‎README.md‎

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ QuestCameraKit is a collection of template and reference projects demonstrating
1414
- [License](#license)
1515
- [Contact](#contact)
1616

17+
# Running all samples
18+
19+
Build and Run now includes all six headset samples in one app. Press **Y** to open or close the menu, move the **left thumbstick** to choose, and press **X** to load a sample. In the Editor use **M**, **↑/↓**, and **Enter**. This menu currently uses Touch controllers; the samples retain their existing hand interactions. The desktop WebRTC receiver remains a separate scene.
20+
21+
**QR tracking (Meta native)** uses the MRUK package already required by this project. No separate decoder, NuGet installation, or QR scripting define is needed. Native tracking still depends on headset runtime support and spatial-data permission.
22+
1723
# PCA Samples
1824

1925
## 1. 🎨 Color Picker
@@ -41,7 +47,7 @@ QuestCameraKit is a collection of template and reference projects demonstrating
4147
<summary>How to run this sample</summary>
4248

4349
- Open the `ObjectDetection` scene.
44-
- Install [Unity AI Inference](https://docs.unity3d.com/Packages/com.unity.ai.inference@2.3/manual/get-started.html) (use `com.unity.ai.inference@2.3.0`).
50+
- [Unity Inference Engine](https://docs.unity3d.com/Packages/com.unity.ai.inference@2.6/manual/index.html) is already pinned to `2.6.1` in the project.
4551
- Select the labels you want to track. Leaving the list empty tracks all objects. <details>
4652
<summary>Show all available labels</summary>
4753
<table>
@@ -57,28 +63,29 @@ QuestCameraKit is a collection of template and reference projects demonstrating
5763
<tr><td>refrigerator</td><td>book</td><td>clock</td><td>vase</td><td>scissors</td><td>teddy bear</td><td>hair drier</td><td>toothbrush</td></tr>
5864
</table>
5965
</details>
60-
- Build and deploy to Quest. Use the trigger to scan the environment; markers will appear for detections above the configured confidence threshold.
66+
- Build and deploy to Quest. Detection runs automatically; markers appear for the selected labels. Confidence filtering applies only when the model provides scores.
6167

6268
</details>
6369

6470
![Object Detection](https://media.githubusercontent.com/media/xrdevrob/QuestCameraKit/befec3b/Media/ObjectDetection.gif)
6571

66-
## 3. 📱 QR Code Tracking with ZXing
72+
## 3. 📱 Native QR Code Tracking
6773

68-
- **Purpose:** Detect and track QR codes in real time. Open webviews or log-in to 3rd party services with ease.
69-
- **Description:** Similarly to the object detection sample, get QR code coordinated and projects them into 3D space. Detect QR codes and call their URLs. You can select between a multiple or single QR code mode. The sample is running at around `70 fps` for multiple QR codes and a stable `72 fps` for a single code. Users are able to choose between CenterOnly and PerCorner raycasting modes via an enum in the inspector. This enables more accurate rotation tracking for use cases that require it (PerCorner), while preserving a faster fallback (CenterOnly).
74+
- **Purpose:** Detect and track QRCodes without having to use a third-party library.
75+
- **Description:** As this feature is still in experimental state, make sure to use experimental mode on your Quest3 when testing. Unity usually asks for enabling that, before building. You can activate it via command line command using Meta Quest Hub too. More information can be found here - [MR Utility Kit QRCode Detection](https://developers.meta.com/horizon/documentation/unity/unity-mr-utility-kit-qrcode-detection) and here - [Mobile Experimental Features](https://developers.meta.com/horizon/documentation/native/android/mobile-experimental-features/)
7076

7177
<details>
7278
<summary>How to run this sample</summary>
7379

74-
- Open the `QRCodeTracking` scene.
75-
- Ensure ZXing DLLs are present (the editor script auto-adds the `ZXING_ENABLED` define).
76-
- Choose Single or Multiple detection mode and the raycast mode (CenterOnly vs PerCorner).
77-
- Build to Quest, point the headset toward QR codes, and interact with the spawned markers.
80+
- Install **TextMeshPro Essentials** if prompted.
81+
- Enable Experimental Mode on your Quest 3/3S (headset UI or Quest Hub CLI).
82+
- Open the **QRCodeDetection** scene.
83+
- Build and deploy to your device, then use the controllers to interact with the UI (hand tracking is not yet supported).
7884

7985
</details>
8086

81-
![QR Code Tracking](https://media.githubusercontent.com/media/xrdevrob/QuestCameraKit/befec3b/Media/QRCodeTracking.gif)
87+
![Native QR tracking](https://media.githubusercontent.com/media/xrdevrob/QuestCameraKit/befec3b/Media/QrCodeDetection.png)
88+
8289

8390
## 4. 🪟 Shader Samples
8491

@@ -210,19 +217,16 @@ https://github.com/user-attachments/assets/a4cfbfc2-0306-40dc-a9a3-cdccffa7afea
210217
<details>
211218
<summary>How to run this sample</summary>
212219

213-
- In **Package Manager**, click the **+** button → **Add package from git URL** and install, in order:
214-
1. `https://github.com/endel/NativeWebSocket.git#upm`
215-
2. `https://github.com/Unity-Technologies/com.unity.webrtc.git`
216-
3. `https://github.com/FireDragonGameStudio/SimpleWebRTC.git?path=/Assets/SimpleWebRTC`
220+
- Unity WebRTC, SimpleWebRTC and NativeWebSocket are pinned in `Packages/manifest.json` and install automatically.
217221
- Open the **WebRTC-Quest** scene.
218-
- On `[BuildingBlock] Camera Rig/TrackingSpace/CenterEyeAnchor/Client-STUNConnection`, set your WebSocket signaling server address (LAN or cloud).
222+
- On `[BuildingBlock] Camera Rig/TrackingSpace/CenterEyeAnchor/Client-STUNConnection`, replace the placeholder with your own WebSocket signaling server address (LAN or cloud). Connections are disabled by default. After setting your server address on both peers, enable WebSocket Connection Active to connect to signaling.
219223
- Build and deploy **WebRTC-Quest** to your Quest 3.
220224
- Open the **WebRTC-SingleClient** scene in the editor (or deploy to another device) to act as the receiving peer.
221225
- Launch both apps. Perform the **Start** gesture with your left hand (or press the menu button) on Quest to begin streaming.
222226

223227
**Troubleshooting**
224228

225-
- If you hit compiler errors, re-add the three git packages listed above.
229+
- If package resolution fails, verify network/Git access and reopen the project with the Unity version in `ProjectSettings/ProjectVersion.txt`.
226230
- Use **Tools ▸ Update WebRTC Define Symbol** after importing packages.
227231
- Ensure your own WebSocket signaling server is running (tutorial [here](https://www.youtube.com/watch?v=-CwJTgt_Z3M)).
228232
- For LAN streaming, leave the STUN address empty; otherwise keep the default.
@@ -236,24 +240,16 @@ https://github.com/user-attachments/assets/a4cfbfc2-0306-40dc-a9a3-cdccffa7afea
236240

237241
![PCA WebRTC](https://media.githubusercontent.com/media/xrdevrob/QuestCameraKit/befec3b/Media/PCA_WebRTC.gif)
238242

239-
## 7. 📅 Experimental QR Code detection
240-
241-
- **Purpose:** Detect and track QRCodes without having to use a third-party library.
242-
- **Description:** As this feature is still in experimental state, make sure to use experimental mode on your Quest3 when testing. Unity usually asks for enabling that, before building. You can activate it via command line command using Meta Quest Hub too. More information can be found here - [MR Utility Kit QRCode Detection](https://developers.meta.com/horizon/documentation/unity/unity-mr-utility-kit-qrcode-detection) and here - [Mobile Experimental Features](https://developers.meta.com/horizon/documentation/native/android/mobile-experimental-features/)
243-
244-
<details>
245-
<summary>How to run this sample</summary>
246-
247-
- Install **TextMeshPro Essentials** if prompted.
248-
- Enable Experimental Mode on your Quest 3/3S (headset UI or Quest Hub CLI).
249-
- Open the **QRCodeDetection** scene.
250-
- Build and deploy to your device, then use the controllers to interact with the UI (hand tracking is not yet supported).
243+
# Update Notes
251244

252-
</details>
245+
## Maintenance update
253246

254-
![Shader Samples](https://media.githubusercontent.com/media/xrdevrob/QuestCameraKit/befec3b/Media/QrCodeDetection.png)
247+
- Unity **6000.3.12f1**, Meta XR Core/MRUK **205.0.0**, Inference Engine **2.6.1**, OpenXR **1.18.0**, Meta OpenXR **2.6.1**, and URP **17.3.0**. Other direct dependencies are pinned in the manifest.
248+
- QR tracking uses Meta MRUK; WebRTC dependencies install with the project. All seven sample scenes are checked for missing scripts.
249+
- Camera/inference lifecycle fixes, capture-pose detection placement, reusable detection markers, safer voice requests, and corrected stereo WAV encoding.
250+
- API credentials must be supplied privately for ImageLLM; never commit a real key to a prefab or scene.
251+
- **Build and Run** defaults to ColorPicker. Use the per-sample build command and Quak device tests in [Testing](docs/testing.md) for the other scenes.
255252

256-
# Update Notes
257253

258254
## Shader sample consolidation
259255

@@ -280,8 +276,8 @@ https://github.com/user-attachments/assets/a4cfbfc2-0306-40dc-a9a3-cdccffa7afea
280276

281277
## Prerequisites
282278

283-
- **Meta Quest Device:** Ensure you are runnning on a `Quest 3` or `Quest 3s` and your device is updated to `HorizonOS v74` or later.
284-
- **Unity:** Recommended is `Unity 6`. Also runs on Unity `2022.3. LTS`.
279+
- **Meta Quest Device:** Ensure you are running on a `Quest 3` or `Quest 3s` and your device is updated to `HorizonOS v74` or later.
280+
- **Unity:** Use `6000.3.12f1` with Android Build Support. This upgraded project targets Unity 6.3; older editor versions are not supported by the current package set.
285281
- **Camera Passthrough API does not work in the Editor or XR Simulator.**
286282
- Get more information from the [Meta Quest Developer Documentation](https://developers.meta.com/horizon/documentation/unity/unity-pca-documentation)
287283

@@ -292,16 +288,16 @@ https://github.com/user-attachments/assets/a4cfbfc2-0306-40dc-a9a3-cdccffa7afea
292288
```
293289

294290
2. **Open the Project in Unity:**
295-
Launch Unity and open the cloned project folder.
291+
Launch Unity and open `Unity-QuestVisionKit` inside the cloned repository.
296292

297293
3. **Configure Dependencies:**
298-
Follow the instructions in the section below to run one of the samples.
294+
Allow Package Manager to resolve the pinned dependencies, then follow the selected sample instructions. See [Testing](docs/testing.md) for repeatable checks and builds.
299295

300296
# Troubleshooting & Known Issues
301297

302-
- For sample 7 QR Code Detection, make sure experimental mode is active. You can find more information about the necessary steps [here](https://developers.meta.com/horizon/documentation/unity/unity-mr-utility-kit-qrcode-detection).
303-
- Object Detection uses `Unity.InferenceEngine` with `com.unity.ai.inference@2.3.0`.
304-
- If switching betwenn Unity 6 and other versions such as 2023 or 2022 it can happen that your Android Manifest is getting modified and the app won't run anymore. Should this happen to you make sure to go to `Meta > Tools > Update AndroidManifest.xml` or `Meta > Tools > Create store-compatible AndroidManifest.xml`. After that make sure you add back the `horizonos.permission.HEADSET_CAMERA` manually into your manifest file.
298+
- For sample 3 QR Code Detection, make sure experimental mode is active. You can find more information about the necessary steps [here](https://developers.meta.com/horizon/documentation/unity/unity-mr-utility-kit-qrcode-detection).
299+
- Object Detection uses `Unity.InferenceEngine` with `com.unity.ai.inference@2.6.1`.
300+
- If switching between Unity 6 and other versions such as 2023 or 2022 it can happen that your Android Manifest is getting modified and the app won't run anymore. Should this happen to you make sure to go to `Meta > Tools > Update AndroidManifest.xml` or `Meta > Tools > Create store-compatible AndroidManifest.xml`. After that make sure you add back the `horizonos.permission.HEADSET_CAMERA` manually into your manifest file.
305301

306302
# README Media Hosting
307303

@@ -389,7 +385,6 @@ large files are removed from the current checkout. See
389385

390386
- Thanks to **Meta** for the Passthrough Camera API and [**Passthrough Camera API Samples**](https://github.com/oculus-samples/Unity-PassthroughCameraApiSamples/).
391387
- Thanks to shader wizard [Daniel Ilett](https://www.youtube.com/@danielilett) for helping me in the shader samples.
392-
- Thanks to **[Michael Jahn](https://github.com/micjahn/ZXing.Net/)** for the XZing.Net library used for the QR code tracking samples.
393388
- Special thanks to [Markus Altenhofer](https://www.linkedin.com/in/markus-altenhofer-176453155/) from [FireDragonGameStudio](https://www.youtube.com/@firedragongamestudio) for contributing the WebRTC sample scene.
394389
- Special thanks to [Thomas Ratliff](https://x.com/devtom7) for contributing his [shader samples](https://x.com/devtom7/status/1902033672041091453) to the repo.
395390

‎Unity-QuestVisionKit/.gitignore‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,17 @@ Assets/Nuget.config
127127
Assets/Nuget.config.meta
128128
**/RuntimeActionBindings.json
129129
**/RuntimeActionBindings.json.meta
130-
.editorconfig
130+
.editorconfig
131+
132+
# Machine-local SDK configuration and test/build output.
133+
Assets/Resources/DevAgentSettings.asset
134+
Assets/Resources/DevAgentSettings.asset.meta
135+
Assets/Resources/OVRPlatformToolSettings.asset.meta
136+
Assets/Resources/PerformanceTestRunInfo.json*
137+
Assets/Resources/PerformanceTestRunSettings.json*
138+
Assets/XR/Temp/
139+
Assets/XR/Temp.meta
140+
.quak/evidence/
141+
.quak/machines.local.json
142+
.quak/packages/
143+
.quak/venv/

‎Unity-QuestVisionKit/Assets/Diagnostics.meta‎

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)