react-three-fiber
react-three-fiber copied to clipboard
<primitive> removed node after reload
Hi, i am building a demo 3d view for cars. here is the repo: https://github.com/hansyulian/react-three-car-demo
how to setup:
-
npm install
-
cp .env.example .env
- from here you either download the models from the https://hansyulian.github.io/test-gltf-files/assets and put in the models folder locally or change the
.env
url value to usehttps://hansyulian.github.io/test-gltf-files/assets
instead
Problem:
Go to CarModelNode.tsx
line 85. comment this, you will notice if you go to one model and then back, the animated models will got removed from the gltf.scene.children
and the next render, the child node will not be rendered.