mrdoob/three.js — Issue #764: Cloning Collada scene?
Author: dabbott
Created: 2011-11-16 09:24:09+00:00
State: open

So I'm loading a Collada file, and I'd like to have multiple instances of the scene. I figured it would be wasteful to load the file multiple times, so I wrote a simple function to clone the scene while reusing geometries and materials.

The problem is, even when I copy the position/rotation/matrix of the original Object3D/Meshes to the new objects, none of the new objects are positioned or rotated correctly.

Is there a function to clone an Object3D? Or maybe a better way of doing this? And if not... what properties of Object3D/Mesh would I actually need to copy for my method to work?

I can post a demo if that would help.