Questions tagged [webvr]

WebVR is an experimental JavaScript API that provides support for virtual reality devices, such as the HTC Vive, Oculus Rift or Google Cardboard, in a web browser.

Note: WebVR is deprecated and has been superseded by WebXR; see .


The burgeoning WebVR APIs provide sensor information from virtual reality devices (such as the Oculus Rift) which, in conjunction with WebGL, allows for the creation of VR web applications.

More information at:

596 questions
4
votes
1 answer

Listen for Oculus controller events in any website

Is it possible for a webpage to listen for button presses of a Oculus controller simply using some generic javascript code like document.addEventListener? In VR browsers by default the primary thumbstick scrolls the page up and down. The idea is to…
Gabe
  • 5,997
  • 5
  • 46
  • 92
4
votes
1 answer

Networked A-frame examples toggle video not working

I have created a remix of the Networked A-frame examples project. I've been testing out some features and for some reason, the toggle video button in the bottom left corner of the screen isn't working on the video example. The function is triggering…
Aidan Young
  • 554
  • 4
  • 15
4
votes
1 answer

How to run mozilla hubs on my local machine?

I've been trying to run mozilla hubs locally because I want to customize it. But the problem is, the documentation includes the deployment on aws and digital ocean. Later I cloned https://github.com/mozilla/hubs - the hubs client and also cloned…
4
votes
2 answers

localhost and 192.168.x.x over HTTPS for a-frame webVR development and local testing

I'm trying to develop a A-frame-based VR experience. I can test it on my mac via http://localhost but can't do the same using mobile phone or VR headset via http://192.168.1.123. The problem is that those browsers demand that the page is served…
MikaelW
  • 1,145
  • 4
  • 11
  • 29
4
votes
0 answers

VTK.js VR not display/showing an hand controller in Room

I try to use VTK VR, but When I test it, I cant see controller in room, I can get action from controller like press or somthing, but without its seen for user in VR mode, how I can fix it? Online Demo From Here. import…
Anees Hikmat Abu Hmiad
  • 3,460
  • 2
  • 19
  • 36
4
votes
2 answers

How to calculate FOV from VRFrameData?

There used to be field of view information in the VREyeParameters, but that was deprecated. So now i am wondering: Is possible to calculate that using the view/projection matrices provided by VRFrameData?
H.B.
  • 166,899
  • 29
  • 327
  • 400
4
votes
0 answers

Reset VR camera orentation three.js

I want to reset the camera orientation to it initial orientation on entering VR or by clicking a button using three.js. In OrbitControls there is a function to reset camera orientaion and position to initial state.I want to do something just like…
Mahmudur Rahman
  • 640
  • 1
  • 6
  • 23
4
votes
3 answers

Hololens applications using WebGL / ThreeJS

I've got a WebGL application built with JavaScript and ThreeJS. I was able to enable WebVR somewhat easily to create a immersive environment. I think my app is a better use case for mixed-reality/AR. Hololens seems to be the big player in that…
amcdnl
  • 8,470
  • 12
  • 63
  • 99
4
votes
1 answer

How can I render HTML in A-Frame?

How can I render or display plain HTML markup as a texture in A-Frame? I want to do something like:
HELLO WORLD
ngokevin
  • 12,980
  • 2
  • 38
  • 84
4
votes
1 answer

Smooth camera control switch on Three.js

I'm working on a website that allows users to see the objects in the sky with VRControls and look into their favorite one with Trackball controls, which is initialized by a click on the object. Here's the demo.…
3
votes
0 answers

Networked Aframe - Screen Sharing Bug

While developing a multi-user VR room with networked-aframe, i run into a bug with the screen sharing option simmilar to the one in the file: /examples/basic-multi-streams.html I've tried different approaches and tests but couldn't get that one…
3
votes
1 answer

A-frame animate box to randomly move in certain area

I am creating a scene using A-frame (https://aframe.io) and I'm wondering how I can animate a box to move randomly throughout a certain area. I want to use the animation property (https://aframe.io/docs/1.2.0/components/animation.html#sidebar) to…
Aidan Young
  • 554
  • 4
  • 15
3
votes
0 answers

A-frame empty in middle

I am creating a scene using A-Frame and I am having a problem where I am using the A-Frame super hands component to move different objects with the controllers in VR and whenever I add a static-body to an (static-body meaning that the cubes…
Aidan Young
  • 554
  • 4
  • 15
3
votes
1 answer

A-frame play specific animations from sketch fab

I am creating a scene using A-frame (https://aframe.io). I am trying to put a gltf model of a crow in my scene from sketchfab. The model of the crow from sketchfab has two different animations however - there is a moving pose and a static pose.…
Aidan Young
  • 554
  • 4
  • 15
3
votes
1 answer

A-frame multiple animations with camera

I have some code for a camera using A-frame (https://aframe.io) and I'm wondering how I can add multiple sequential animations. I would like it so that when my first animation is finished, another animation will trigger and the camera will move 5…
Aidan Young
  • 554
  • 4
  • 15
1 2
3
39 40