{"action":"opened","issue":{"url":"https://api.github.com/repos/KhronosGroup/glTF/issues/551","repository_url":"https://api.github.com/repos/KhronosGroup/glTF","labels_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/551/comments","events_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/551/events","html_url":"https://github.com/KhronosGroup/glTF/issues/551","id":141427183,"number":551,"title":"COLLADA2GLTF can't convert Maya's moved group pivot information correctly.","user":{"login":"emadurandal","id":3821214,"avatar_url":"https://avatars.githubusercontent.com/u/3821214?v=3","gravatar_id":"","url":"https://api.github.com/users/emadurandal","html_url":"https://github.com/emadurandal","followers_url":"https://api.github.com/users/emadurandal/followers","following_url":"https://api.github.com/users/emadurandal/following{/other_user}","gists_url":"https://api.github.com/users/emadurandal/gists{/gist_id}","starred_url":"https://api.github.com/users/emadurandal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emadurandal/subscriptions","organizations_url":"https://api.github.com/users/emadurandal/orgs","repos_url":"https://api.github.com/users/emadurandal/repos","events_url":"https://api.github.com/users/emadurandal/events{/privacy}","received_events_url":"https://api.github.com/users/emadurandal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-16T23:02:02Z","updated_at":"2016-03-16T23:02:02Z","closed_at":null,"body":"Hi there.\r\n\r\nI tried latest COLLADA2GLTF, but I found a little weird covert result.\r\n\r\nLook at this maya scene file (group_pivot.mb in attached zip file).\r\nIn this scene, there is a group whose pivot position is moved to (0, 5, 0).\r\nYou can see this animation scene at https://youtu.be/-BME5VZRDUQ\r\n\r\nI exported this scene to collada file (group_pivot.dae) using ColladaMaya exporter.\r\nI checked that this collada file is correct. Because MacOS preview function showed correct animation.\r\nhttps://youtu.be/NwhLpZD2gBM\r\n\r\nThen, I converted this collada file to gltf file (group_pivot_original.gltf, group_pivot.bin, group_pivot0FS.glsl and group_pivot0VS.glsl) using COLLADA2GLTF.\r\nBut Its data (group_pivot_original.gltf) seem wrong.\r\n\r\nThis video is the result of group_pivot_original.gltf using my original WebGL library, GLBoost. It’s wrong animation as you can see.\r\nhttps://youtu.be/ZapNp3LNB6A\r\n\r\n\r\nI think that the cause is the following part (in group_pivot_original.gltf).\r\n```group_pivot_original.gltf\r\n    \"nodes\": {\r\n        \"_group1\": {\r\n            \"children\": [\r\n                \"_group1_pCube1\"\r\n            ],\r\n            \"name\": \"group1\",\r\n            \"rotation\": [\r\n                0,\r\n                0,\r\n                0.707107,\r\n                0.707107\r\n            ],\r\n            \"scale\": [\r\n                1,\r\n                1,\r\n                1\r\n            ],\r\n            \"translation\": [       <- ?\r\n                5,\r\n                5,\r\n                0\r\n            ]\r\n        },\r\n        \"_group1_pCube1\": {\r\n            \"children\": [],\r\n            \"matrix\": [       <- ?\r\n                1,\r\n                0,\r\n                0,\r\n                0,\r\n                0,\r\n                1,\r\n                0,\r\n                0,\r\n                0,\r\n                0,\r\n                1,\r\n                0,\r\n                0,\r\n                0,\r\n                0,\r\n                1\r\n            ],\r\n```\r\n\r\nSo, I fixed the data (group_pivot_fixed.gltf) as following.\r\n\r\n```group_pivot_fixed.gltf\r\n    \"nodes\": {\r\n        \"_group1\": {\r\n            \"children\": [\r\n                \"_group1_pCube1\"\r\n            ],\r\n            \"name\": \"group1\",\r\n            \"rotation\": [\r\n                0,\r\n                0,\r\n                0.707107,\r\n                0.707107\r\n            ],\r\n            \"scale\": [\r\n                1,\r\n                1,\r\n                1\r\n            ],\r\n            \"translation\": [\r\n                0,\r\n                5,\r\n                0\r\n            ]\r\n        },\r\n        \"_group1_pCube1\": {\r\n            \"children\": [],\r\n            \"matrix\": [\r\n                1,\r\n                0,\r\n                0,\r\n                0,\r\n                0,\r\n                1,\r\n                0,\r\n                0,\r\n                0,\r\n                0,\r\n                1,\r\n                0,\r\n                0,\r\n                -5,\r\n                0,\r\n                1\r\n            ],\r\n```\r\n\r\nThen, My GLBoost Renderer showed correct Animation.\r\nhttps://youtu.be/zyV3JKvEZqE\r\n\r\nIn conclusion, I think that COLLADA2GLTF should export like group_pivot_fixed.gltf, not  group_pivot_original.gltf.\r\nOr, If there is a pivot infomation in glTF spec. COLLADA2GLTF should export it.\r\nI guess that this problem is caused by COLLADA2GLTF’s bug, not my GLBoost library’s bug.\r\n\r\n\r\n[group_pivot.zip](https://github.com/KhronosGroup/glTF/files/177024/group_pivot.zip)"}}