Author Topic: missing cloned objects  (Read 1883 times)

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
missing cloned objects
« on: June 24, 2010, 11:48:28 pm »
somehow my cloned objects are missing. they dont appear. i clone them with
Code: [Select]
object3d.cloneObject()
same thing happens when i copy them with
Code: [Select]
new Object3D(object3d, true); // reuse meshbut this works ok:
Code: [Select]
new Object3D(object3d, false); // dont reuse mesh
any ideas ?
« Last Edit: June 24, 2010, 11:50:26 pm by raft »

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: missing cloned objects
« Reply #1 on: June 25, 2010, 12:11:05 am »
solved. i was calling translate(..) and translateMesh() on cloned objects. which causes all the shared meshes translate cumulatively and go out of scope..  ::)