missing cloned objects

Started by raft, June 24, 2010, 11:48:28 PM

Previous topic - Next topic

raft

somehow my cloned objects are missing. they dont appear. i clone them with object3d.cloneObject()

same thing happens when i copy them with
new Object3D(object3d, true); // reuse mesh
but this works ok:
new Object3D(object3d, false); // dont reuse mesh

any ideas ?

raft

solved. i was calling translate(..) and translateMesh() on cloned objects. which causes all the shared meshes translate cumulatively and go out of scope..  ::)