-
I see that THREE now supports 3DM files which is very neat. Is there a way to use this with useLoader within R3F? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Have you tried doing this: const MyComponent = () => {
const loadedModel = useLoader(THREE.Rhino3dmLoader, PATH_TO_MODEL)
return <primitive object={loadedModel} />
} Or does the Rhino loader need something more specific set? |
Beta Was this translation helpful? Give feedback.
-
Hmm I guess all I had to do was to create a sandbox! |
Beta Was this translation helpful? Give feedback.
-
Thanks! Perfect. |
Beta Was this translation helpful? Give feedback.
Hmm I guess all I had to do was to create a sandbox!
It's working. Here's the sandbox for future reference:
https://codesandbox.io/s/r3f-gltf-fonts-forked-i1jjf?file=/src/index.js:199-220