Skip to content

Giving unique attributes to a single model based component being re-used made with GLTFJSX #1673

Answered by drcmda
ashleymvanduzer asked this question in Q&A
Discussion options

You must be logged in to vote

what useLoader does is it caches the models data. gltfjsx allows you to re-use it by covering geometries and materials into new meshes which now can receive their own positions and such, but you are using the same materials and geometries between instances still. you can clone the data you get from useGLTF, or give these meshes their own material, then it will work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ashleymvanduzer
Comment options

@drcmda
Comment options

Answer selected by ashleymvanduzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants