I am trying to merge multiple meshes using threejs.
There is many examples that i would find using r71, but none work with the latest because of the changes with geometry.
anyone have a function that I could use to merge meshes in the latest version of threejs? thanks!
Is that in the latest version of three js (sorry I cannot check, I am currently on my school chromebook with restricts viewing page source. I am on 0.150
I´ve tried with 147 and received an error…
THREE.BufferGeometry.merge() has been removed. Use THREE.BufferGeometryUtils.mergeBufferGeometries() instead.
You want to use
BufferGeometryUtils.mergeBufferGeometries() like demonstrated in webgl_geometry_minecraft to merge multiple static meshes into a single one.
I did an example to merge five geometries…
Please check if this is useful.
Please write if is there a simple way to set color attributes for each geometry.
Thanks for the attention.