{"comment":{"created_at":"2011-10-14T10:19:27Z","body":"Actually, on the last code you posted, you're adding the objects twice. Either you add the dae, or you add the children...","updated_at":"2011-10-14T10:19:27Z","url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/2405186","id":2405186,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a00211a1e1aa4fe920302e7b76da0d91?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a00211a1e1aa4fe920302e7b76da0d91","url":"https://api.github.com/users/mrdoob","id":97088,"login":"mrdoob"}},"action":"created","issue":{"number":648,"created_at":"2011-10-13T18:23:19Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I was experimenting with the collada loader and attempting to select different object created by the loader when I noticed that something odd was happening. When attempting to select an object, an alternative object was being selected. I did a little investigating and determined that the were two identical objects being rendered. \r\n\r\nI wanted to check here and see if anyone knew why there were two objects being created.\r\n\r\nThanks for helping!,\r\n\r\nCodeguy\r\n\r\n\r\nIn case anyone wanted to see the loader I am using or the object selection code:\r\n\r\n```javascript\r\nvar loader = new ColladaLoader();\r\n\tloader.load( '../three.js/models/sample.dae', function colladaReady( collada ) {\r\n\tdae = collada.scene;\r\n\tskin = collada.skins[ 0 ];\r\n\tinit();\r\n\tanimate();\r\n} );\r\n```\r\n\r\nPicker code -The intersects variable will contain all object under the mouse cursor when clicked\r\n\r\n```javascript\r\nfunction onDocumentMouseDown( event ) {\r\n\tevent.preventDefault();\r\n\tvar vector = new THREE.Vector3( ( event.clientX / window.innerWidth ) * 2 - 1, - ( event.clientY / window.innerHeight ) * 2 + 1, 0.5 );\r\n\tprojector.unprojectVector( vector, camera );\r\n\t\r\n\tvar ray = new THREE.Ray( camera.position, vector.subSelf( camera.position ).normalize() );\r\n\r\n\tvar intersects = ray.intersectObjects(scene.objects);\r\n}\r\n```","comments":3,"title":"ColladaLoader creates two copies of same object","updated_at":"2011-10-14T10:19:27Z","url":"https://api.github.com/repos/mrdoob/three.js/issues/648","id":1903133,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/91f861fe32b7e5d2c71d8b4e09809274?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"91f861fe32b7e5d2c71d8b4e09809274","url":"https://api.github.com/users/Codeguyross","id":1108129,"login":"Codeguyross"},"html_url":"https://github.com/mrdoob/three.js/issues/648","labels":[],"state":"open"},"legacy":{"issue_id":1903133,"comment_id":2405186}}