# How to turn Collada import into instanced mesh?

**URL:** <https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221>\
**Category:** Questions\
**Tags:** animation, instanced-mesh\
**Created:** [January 8, 2021, 3:04pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221 "2021-01-08T15:04:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![S41L0R](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/s41l0r/32/12971_2.png) [@S41L0R](https://discourse.threejs.org/u/S41L0R)\
**Post date:** [January 8, 2021, 3:04pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/1 "2021-01-08T15:04:08Z")

</div>

Hey, so I’ve got a skinned mesh imported from a dae file. I want to turn it into an instanced mesh, but I want it to keep its bone structure because those bones, well, keep the mesh together. (Also to enable animations - if they’re even possible on instanced meshes - later down the road.)

Also, will this play well with TransformControls?

Thanks.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [January 8, 2021, 7:15pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/2 "2021-01-08T19:15:43Z")

</div>

Sorry to disappoint you but there are conceptual things that don’t work:

- `InstancedMesh` does not support skeletal animation. You have to work with `SkinnedMesh` (which does not support instancing however).
- `TransformControls` does not support `InstancedMesh`.

---

<div class="post-metadata">

**Author:** ![S41L0R](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/s41l0r/32/12971_2.png) [@S41L0R](https://discourse.threejs.org/u/S41L0R)\
**Post date:** [January 9, 2021, 6:54pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/3 "2021-01-09T18:54:20Z")

</div>

… darn it.

Is there a way to use instancedBufferGeometry?

I’m not going to lie, I don’t know too much of what I’m doing when it comes to instancing, just the basic concepts.

---

<div class="post-metadata">

**Author:** ![S41L0R](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/s41l0r/32/12971_2.png) [@S41L0R](https://discourse.threejs.org/u/S41L0R)\
**Post date:** [March 4, 2021, 3:48pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/4 "2021-03-04T15:48:02Z")

</div>

Ok,

So I’ve got something working that replaces the skeleton in the dae files I’m working with with a dummy skeleton.

Is there a way to import a DAE file as not a skinned mesh? Just a normal mesh (which I assume uses less resources than a skinned mesh)

Or is there a way to convert a skinned mesh into a normal mesh object?

Also, is there a way to convert bufferGeometry to instancedBufferGeometry?

Thanks.

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [March 4, 2021, 4:34pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/5 "2021-03-04T16:34:28Z")

</div>

This example could be used as a reference, regardless of what file format you import from:

[https://threejs.org/examples/?q=scatter#webgl\_instancing\_scatter](https://threejs.org/examples/?q=scatter#webgl_instancing_scatter)

It still requires a non-skinned mesh. It would be best to remove the skeleton from the file in a tool like Blender, where you can fix any scale or other issues that might arise by doing so. You can try just putting the SkinnedMesh’s geometry into a normal Mesh in three.js but the scale and pose might be off, and you’re still loading some extra data.

---

<div class="post-metadata">

**Author:** ![S41L0R](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/s41l0r/32/12971_2.png) [@S41L0R](https://discourse.threejs.org/u/S41L0R)\
**Post date:** [March 4, 2021, 4:47pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/6 "2021-03-04T16:47:12Z")

</div>

Thanks,

Unfortunately I can’t remove the bones in Blender as I need to use this process for over a thousand files, and cannot include models in distributions as that wouldn’t be legal. (I’m working on a map editor for modding Breath of the Wild, so I need assets to be parsed from the user’s game dump.) But this is fine, as I have already correctly removed the bones from the file when it is parsed from it’s original format.

Anyway, that link looks really helpful, I’ll definitely check out the source code for that, thanks!

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [March 4, 2021, 5:42pm UTC](https://discourse.threejs.org/t/how-to-turn-collada-import-into-instanced-mesh/22221/7 "2021-03-04T17:42:52Z")

</div>

Sounds like an awesome project!
