-
Here is the model in question: light_bulb.zip (copyrighted model) I'm trying to get this model displayed on a blank canvas following this tutorial: https://blog.logrocket.com/configure-3d-models-react-three-fiber/, but it does not show anything. And there isn't any error so I'm having a hard time figuring out what is missing. Here is a reproduction: https://codesandbox.io/s/lightbulb-r3f-gcw1cv. The Could someone take a look? A sandbox with this model displayed correctly would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
you're not telling the gltfloader about the paths it has to find the textures and binaries in. useLoader(GLTFLoader, url, loader => loader.setPath(..... but it's generally not a good idea to use gltf on the web, use glb's. gltfjsx has a transform option that makes you one: btw the path is wrong, too. |
Beta Was this translation helpful? Give feedback.
-
It turned out it was loading the model indeed. But the model has some issues or special stuff going on. It is invisible. |
Beta Was this translation helpful? Give feedback.
It turned out it was loading the model indeed. But the model has some issues or special stuff going on. It is invisible.
I tried this model instead https://sketchfab.com/3d-models/incandescent-light-bulb-217c6b059c584243893b36ab76472ddd and it worked.