Questions tagged [react-xr]

React components and hooks for creating VR/AR applications

React components and hooks for creating VR/AR applications with @react-three/fiber

Source: https://github.com/pmndrs/react-xr

4 questions
5
votes
0 answers

Multiple scenes in VR mode and different cameras

I'm trying to implement this fiddle in an XR environment. In the fiddle, the second scene is fixed to the screen, but not with the oculus/player camera... Does anyone have a solution to making a scene or an object always on the top right corner of…
BENARD Patrick
  • 30,363
  • 16
  • 99
  • 105
1
vote
0 answers

Scene management through js Events (React3F + React-XR)

I'm quite a beginner with JS and I'm trying to use React3F + ReactXR to create some WebXR apps for Hololens 2. I'm actually stuck on how to add elements on demand via JS events (eg. select event). The intended behavior is to place an object whenever…
Julen
  • 97
  • 2
  • 9
1
vote
0 answers

attach(mesh) issue using @react-three/xr interactive

I'm trying to recreate this three.js attach-to-ray demo in @react-three/xr and have come up against a very strange hiccup that I can't figure out. Using onSelectEnd to attach the mesh works just fine, but once it's attached onSelectEnd will no…
laffan
  • 109
  • 1
  • 2
  • 9
0
votes
0 answers

React XR: Problems with augmented rea

I am trying to use React XR to display some simple meshes in AR, but I am not getting the mesh to be displayed in AR.This is all the code: import "./App.css"; import { Canvas } from "@react-three/fiber"; import React from "react"; …