# How to enable webxr passthrough for quest2?

**URL:** <https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897>\
**Category:** Questions\
**Tags:** webxr\
**Created:** [October 23, 2022, 12:31am UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897 "2022-10-23T00:31:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FuzzyWobble](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fuzzywobble/32/15221_2.png) [@FuzzyWobble](https://discourse.threejs.org/u/FuzzyWobble)\
**Post date:** [October 23, 2022, 12:31am UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/1 "2022-10-23T00:31:12Z")

</div>

Anyone know how to turn on passthrough for threejs or if that feature is even added yet?  
This demo seems to have done it: [https://youtu.be/mvzPprYgflo](https://youtu.be/mvzPprYgflo), but there is no documentation anywhere. Thanks.

---

<div class="post-metadata">

**Author:** ![cabada](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/cabada/32/38883_2.png) [@cabada](https://discourse.threejs.org/u/cabada)\
**Post date:** [October 23, 2022, 1:05am UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/2 "2022-10-23T01:05:22Z")

</div>

Is that demo being executed purely in a browser? Or more like an app that has a browser embedded? 🤔

---

<div class="post-metadata">

**Author:** ![FuzzyWobble](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fuzzywobble/32/15221_2.png) [@FuzzyWobble](https://discourse.threejs.org/u/FuzzyWobble)\
**Post date:** [October 23, 2022, 8:09pm UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/3 "2022-10-23T20:09:34Z")

</div>

Figured it out:

1. webgl renderer must be transparent (alpha:true in threejs) and background color (0x00000,0)
2. canvas css must be transparent (background:none)
3. must enter immersive-ar (not immersive-vr session)
4. quest2 must be running version 46 or higher
5. turn on passthrough mode in quest2 main settings

---

<div class="post-metadata">

**Author:** ![Oleksii\_Maksymov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/oleksii_maksymov/32/30550_2.png) [@Oleksii\_Maksymov](https://discourse.threejs.org/u/Oleksii_Maksymov)\
**Post date:** [October 24, 2022, 5:29pm UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/4 "2022-10-24T17:29:09Z")

</div>

@FuzzyWobble hm… just got the same idea to create something with passthrough mode, saw the example… But can’t make it work. First spent several hours just to update my Quest 2, got 46. Actually even that demo doesn’t work like in AR mode. Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![FuzzyWobble](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fuzzywobble/32/15221_2.png) [@FuzzyWobble](https://discourse.threejs.org/u/FuzzyWobble)\
**Post date:** [October 24, 2022, 9:12pm UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/5 "2022-10-24T21:12:55Z")

</div>

This demo doesn’t work?  
[https://immersive-web.github.io/webxr-samples/immersive-ar-session.html](https://immersive-web.github.io/webxr-samples/immersive-ar-session.html)

Were you able to turn on passthrough mode in the oculus settings?

---

<div class="post-metadata">

**Author:** ![Oleksii\_Maksymov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/oleksii_maksymov/32/30550_2.png) [@Oleksii\_Maksymov](https://discourse.threejs.org/u/Oleksii_Maksymov)\
**Post date:** [December 14, 2022, 10:59am UTC](https://discourse.threejs.org/t/how-to-enable-webxr-passthrough-for-quest2/43897/6 "2022-12-14T10:59:55Z")

</div>

Looks like I had to update and reload my glasses several times. Thanks mate!
