Skip to content

gltf model instancedMesh question #1553

Answered by rabelais88
neciszhang asked this question in Q&A
Discussion options

You must be logged in to vote

no you can't. An instancedMesh only accepts one geometry and one material,
as stated in Three.js official doc.
there are two possible solutions for this:

  1. just use drei/useGLTF() with mesh and rely on its caching ability. the performance drop is unnoticeable in most simple use cases.
  2. put multiple instancedMesh and move the positions altogether to the same position by accessing their refs. IMO, it gets really messy.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@neciszhang
Comment options

@bhushan6
Comment options

@neciszhang
Comment options

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