stemkoski/stemkoski.github.com

How to merge Meshes with Textures?

Opened this issue · 0 comments

Hello,

i am really stuck with the following problem:

I have several meshes; each mesh has a different texture. Now I want to merge them all:

mergedGeo.merge( mesh.geometry, mesh.matrix);

This works fine.

But when I want to add the merged mesh to the scene...they information about the texture on each mesh is lost:

mergedGeo.computeFaceNormals();
group = new THREE.Mesh( mergedGeo, new THREE.MeshBasicMaterial({ color: parseInt("ffffff", 16) }));
group.matrixAutoUpdate = false;
group.updateMatrix();
scene.add( group );

I am using Revision 68.

I urgently need help on that matter.

Kind regards,

Sebastian