Open albertorizzi opened 1 year ago
Hi @albertorizzi, this works easily with the useGltf
hook from @react-three/drei
import { useGLTF } from "@react-three/drei"
const Model = (url) => {
const { scene } = useGLTF(url)
return <primitive object={scene} />
}
...
<ARMarker
params={{ smooth: true }}
type={"pattern"}
patternUrl={"data/patt.hiro"}
>
<Suspense fallback={null}>
<Model url={url} />
</Suspense>
</ARMarker>
...
How can I implement this example? I would when the marker is recognized that appear a GLTF model.