-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebXR #3422
Comments
Searching for VR devices: function enumerateVRDevices(devices) {
var i;
for (i = 0; i < devices.length; ++i) {
if (devices[i] instanceof HMDVRDevice) {
// ...
}
}
for (i = 0; i < devices.length; ++i) {
if (devices[i] instanceof PositionSensorVRDevice) {
// Ensure devices[i].hardwareUnitId is the same as the HMDVRDevice
// ..
}
}
}
if (navigator.getVRDevices) {
navigator.getVRDevices().then(enumerateVRDevices);
} else if (navigator.mozGetVRDevices) {
navigator.mozGetVRDevices(enumerateVRDevices);
} |
the code just works for Oculus Rift, while not for htc vive ?? |
Good article. Multiview is also coming to three.js, https://github.com/fernandojsg/three.js/tree/multiview_support |
|
Resources via @TrevorDev |
Latest from Mozilla:
|
From WebVR/XR — The future is here:
|
FYI: Mozilla releases WebXR emulator extensions for Chrome and Firefox so anyone can develop without needing extra hardware. Blog: https://blog.mozvr.com/webxr-emulator-extension/ Firefox: https://addons.mozilla.org/en-US/firefox/addon/webxr-api-emulator/ |
Is there a simple way to convert XRView's |
Hi bagnell, I would like to ask how to do these three things in webxr, because these mentioned APIs are in the outdated WebVR. |
any update for web-xr? |
HI @abigstupidbear, there hasn't been any activity on this item recently. If you'd like to add more information about your use case, that may help us prioritize. Or, if you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR. I don't believe there is a way to set the Thanks! |
Hi. I just ran into this discussion. I have been working on a flow that truly works with WebXR. I am ready to send a PR, but only as a proof of concept. I got it working for v1.74, so I'll update my code to the latest version and then send you the proposal. Maybe a PR is not the best option for you to check it out, so please tell me if there is a better way. |
Hi. I have opened a PR as I start to work on WebXR support. This PR concretely adds displaying the VR session on the HMD using WebXR. #11372 |
Hey @python273 @abigstupidbear did you find any answers to this problem? I could use some help with that and get cameras working correctly for the WebXR fork of CesiumJS that I am working on. Right now we are doing this, which is not utilizing WebXR's parameters: Scene.js:prepareWebVRPose |
VRButton
should search for VR devices. If none, are available default to Cardboard.Fullscreen.requestFullscreen
and has viewing parameters that should be used for the left and right eye cameras.DeviceOrientationCameraController
to set the camera orientation. If the parameter isundefined
, default to using thedeviceorientation
event.The text was updated successfully, but these errors were encountered: