Using Clone component with a gltf that uses instancedMesh #1792
Unanswered
alexkahndev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am converting a game I have from regular threeJS to React Three Fiber with this amazing drei library. The issue I'm running into is that I am trying to use the Clone component so I can have a shallow copy of my model. By setting the object to 'scene' from the useGLTF hook I'm able to display everything except parts that are instancedMesh. I found this model online and ideally my Clone or similar solution should be able to support models that are created using instancedMeshes. Since instancedMesh does not have a .clone() method what are my options for having a Cloned or instanced version of my model for performance reasons or am I forced to just make 5 hard copies.
Beta Was this translation helpful? Give feedback.
All reactions