Replies: 2 comments 10 replies
-
the way you import the gltf loader is very strange. this is how it should be: import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader" check out this tool https://github.com/react-spring/gltfjsx it extracts the model graph, if you have that it's easy to exchange materials, colors, etc |
Beta Was this translation helpful? Give feedback.
2 replies
-
On the next repo there are solutions to this. It happens because gltfloader has import statements. Next has something that makes it work |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am rather new to typescript/react and having difficulty with making things work 😄
I am trying to construct a 3D model with multiple replaceable parts as components. In debugger I can see messages that the values changed but cant observe any visual changes or errors.
My code is pretty much like this and I expect the sub model to change upon clicking the buttons.
Beta Was this translation helpful? Give feedback.
All reactions