# Issues with WebXR

**URL:** <https://discourse.threejs.org/t/issues-with-webxr/5378>\
**Category:** Questions\
**Tags:** webvr\
**Created:** [December 17, 2018, 3:51am UTC](https://discourse.threejs.org/t/issues-with-webxr/5378 "2018-12-17T03:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![osiriswrecks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/osiriswrecks/32/2136_2.png) [@osiriswrecks](https://discourse.threejs.org/u/osiriswrecks)\
**Post date:** [December 17, 2018, 3:51am UTC](https://discourse.threejs.org/t/issues-with-webxr/5378/1 "2018-12-17T03:51:11Z")

</div>

I’m trying to set up a project with THREE JS’s WebVR support, and I’m running into some issues.

My Pixel can show the WebVR example scenes perfectly, but for some reason when I try to implement it on my own project I get the following error: `renderer.vr.setFrameOfReferenceType is not a function`.

When I compare my scene to the WebVR panorama scene, for example, I’m finding I’m actually missing functions in my renderer.vr object:

- getController()
- setFrameOfReferenceType()
- setFramebufferScaleFactor()

At first I thought maybe my origin trial keys weren’t working, so I explicitly turned on the WebXR Device API and Gamepad Support in my Chrome flags. Still, same issue.

Is there something obvious that I’m missing here?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [December 17, 2018, 11:47am UTC](https://discourse.threejs.org/t/issues-with-webxr/5378/2 "2018-12-17T11:47:26Z")

</div>

What version of `three.js` are you using? Both `WebVRManager` and `WebXRManager` provide all mentioned methods since `R98`.

---

<div class="post-metadata">

**Author:** ![osiriswrecks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/osiriswrecks/32/2136_2.png) [@osiriswrecks](https://discourse.threejs.org/u/osiriswrecks)\
**Post date:** [December 17, 2018, 3:05pm UTC](https://discourse.threejs.org/t/issues-with-webxr/5378/3 "2018-12-17T15:05:25Z")

</div>

AHA! That’s probably it. I’m running on a slightly customized version of R94. I upgraded my WebVR file but didn’t think to also update THREE.

I will make the change and report back.

---

<div class="post-metadata">

**Author:** ![osiriswrecks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/osiriswrecks/32/2136_2.png) [@osiriswrecks](https://discourse.threejs.org/u/osiriswrecks)\
**Post date:** [December 18, 2018, 2:38pm UTC](https://discourse.threejs.org/t/issues-with-webxr/5378/4 "2018-12-18T14:38:16Z")

</div>

Yep, that was the issue. I merged the latest upstream dev branch with my own fork and it fixed everything. Thanks for the reminder!
