How to use OrbitControl with react?


i’m trying to use threejs with react.

I manage to display the model: Gigascope

But the orbit control doesn’t work. Nothing happens when i click or touch the model.

So i’m trying to use react-three-fiber but i have difficulties to make it work with the loader need with GitHub - NASA-AMMOS/3DTilesRendererJS: Renderer for 3D Tiles in Javascript using three.js.

import { OrbitControls } from '@react-three/drei'

  <OrbitControls />

you can use pain orbitcontrols from three of course, either as is, as you’d always do it, or declarative, but it has some boilerplate that you need to observe, that’s what the drei component takes off your shoulders.