Hy, i integrated my three js project into react and everything works well except for loading the objects.
I tried to load it from the same folder as the script, and still receive a 404 error.
While working static there were no problems with the loading.
Is there something that should be done when integrating three in react?
better use react-three-fiber for three in react. this is not a wrapper, but a custom renderer, so you’re writing plain threejs but in react semantics just like you write dom apps in react-dom (which is also a renderer).
especially in combination with gltfjsx because all that traversal code will go away. gltfjsx will create a jsx component graph for your gltf, similar to how you can render out svg’s. then you can directly change props, and this makes it also re-usable since you don’t destroy the source data.