You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00022dc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ If you’d like to see new functionality:
28
28
29
29
When submitting a pull request:
30
30
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!
32
32
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).
33
33
4.**Write Clear Commit Messages:** Describe what you’re changing and why.
34
34
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:
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.
Copy file name to clipboardExpand all lines: README.md
+34-39Lines changed: 34 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,12 @@ QuestCameraKit is a collection of template and reference projects demonstrating
14
14
-[License](#license)
15
15
-[Contact](#contact)
16
16
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
+
17
23
# PCA Samples
18
24
19
25
## 1. 🎨 Color Picker
@@ -41,7 +47,7 @@ QuestCameraKit is a collection of template and reference projects demonstrating
41
47
<summary>How to run this sample</summary>
42
48
43
49
- 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.
45
51
- Select the labels you want to track. Leaving the list empty tracks all objects. <details>
46
52
<summary>Show all available labels</summary>
47
53
<table>
@@ -57,28 +63,29 @@ QuestCameraKit is a collection of template and reference projects demonstrating
- 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.
-**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/)
70
76
71
77
<details>
72
78
<summary>How to run this sample</summary>
73
79
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).
- Unity WebRTC, SimpleWebRTC and NativeWebSocket are pinned in `Packages/manifest.json` and install automatically.
217
221
- 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.
219
223
- Build and deploy **WebRTC-Quest** to your Quest 3.
220
224
- Open the **WebRTC-SingleClient** scene in the editor (or deploy to another device) to act as the receiving peer.
221
225
- Launch both apps. Perform the **Start** gesture with your left hand (or press the menu button) on Quest to begin streaming.
222
226
223
227
**Troubleshooting**
224
228
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`.
226
230
- Use **Tools ▸ Update WebRTC Define Symbol** after importing packages.
227
231
- Ensure your own WebSocket signaling server is running (tutorial [here](https://www.youtube.com/watch?v=-CwJTgt_Z3M)).
228
232
- For LAN streaming, leave the STUN address empty; otherwise keep the default.
-**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).
- 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.
-**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.
285
281
-**Camera Passthrough API does not work in the Editor or XR Simulator.**
286
282
- Get more information from the [Meta Quest Developer Documentation](https://developers.meta.com/horizon/documentation/unity/unity-pca-documentation)
Launch Unity and open `Unity-QuestVisionKit` inside the cloned repository.
296
292
297
293
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.
299
295
300
296
# Troubleshooting & Known Issues
301
297
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.
305
301
306
302
# README Media Hosting
307
303
@@ -389,7 +385,6 @@ large files are removed from the current checkout. See
389
385
390
386
- Thanks to **Meta** for the Passthrough Camera API and [**Passthrough Camera API Samples**](https://github.com/oculus-samples/Unity-PassthroughCameraApiSamples/).
391
387
- 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.
393
388
- 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.
394
389
- Special thanks to [Thomas Ratliff](https://x.com/devtom7) for contributing his [shader samples](https://x.com/devtom7/status/1902033672041091453) to the repo.
0 commit comments