Questions tagged [drei]
18 questions
0
votes
1 answer
Import Error with @react-three/drei / react-three-fiber
I'm trying to use @react-three/drei. I've successfully installed and used @react-three/fiber but when I installed @react-three/drei. I get the following error:
./node_modules/three-stdlib/lights/RectAreaLightUniformsLib.js
Attempted import error:…

kwing25
- 3
- 1
- 5
0
votes
2 answers
The tag is unrecognized in this browser
import React, { Suspense } from 'react'
import { useGLTF } from '@react-three/drei'
const MagicRoom = () => {
// Importing model
const Model = () => {
const gltf = useGLTF('./libs/the_magic_room/scene.gltf', true)
return

raghav-wd
- 410
- 4
- 12
0
votes
1 answer
Locking orbital controls while using transform controls on multiple meshes
I'm trying to have the orbital controls lock their position while I'm transforming either of the meshes in my example. My current implementation follows the logic found here:…

Adam Robinson
- 115
- 2
- 15