{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glTF/issues/355","labels_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/355/comments","events_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/355/events","html_url":"https://github.com/KhronosGroup/glTF/issues/355","id":57785192,"number":355,"title":"collada2gltf.exe converter problem, creating a single gltf file?","user":{"login":"yaozhihang","id":5942971,"avatar_url":"https://avatars.githubusercontent.com/u/5942971?v=3","gravatar_id":"","url":"https://api.github.com/users/yaozhihang","html_url":"https://github.com/yaozhihang","followers_url":"https://api.github.com/users/yaozhihang/followers","following_url":"https://api.github.com/users/yaozhihang/following{/other_user}","gists_url":"https://api.github.com/users/yaozhihang/gists{/gist_id}","starred_url":"https://api.github.com/users/yaozhihang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaozhihang/subscriptions","organizations_url":"https://api.github.com/users/yaozhihang/orgs","repos_url":"https://api.github.com/users/yaozhihang/repos","events_url":"https://api.github.com/users/yaozhihang/events{/privacy}","received_events_url":"https://api.github.com/users/yaozhihang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KhronosGroup/glTF/labels/converter","name":"converter","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-16T10:06:10Z","updated_at":"2015-02-26T21:37:46Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to convert my collada file to gltf file using the opensource tool collada2gltf.exe, which is downloaded from the website (https://github.com/KhronosGroup/glTF/wiki/Converter-builds)\r\n\r\nDuring my test, after converting the dae file, several seperated files (gltf, glsf, bin) have been created. My question is how to create only a single gltf file, which should be similar to the converted gltf file using the online tool (https://cesiumjs.org/convertmodel.html).\r\n\r\nthanks and best regards\r\n\r\nZhihang \r\n "},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glTF/issues/comments/76279429","html_url":"https://github.com/KhronosGroup/glTF/issues/355#issuecomment-76279429","issue_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/355","id":76279429,"user":{"login":"rap2363","id":3723199,"avatar_url":"https://avatars.githubusercontent.com/u/3723199?v=3","gravatar_id":"","url":"https://api.github.com/users/rap2363","html_url":"https://github.com/rap2363","followers_url":"https://api.github.com/users/rap2363/followers","following_url":"https://api.github.com/users/rap2363/following{/other_user}","gists_url":"https://api.github.com/users/rap2363/gists{/gist_id}","starred_url":"https://api.github.com/users/rap2363/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rap2363/subscriptions","organizations_url":"https://api.github.com/users/rap2363/orgs","repos_url":"https://api.github.com/users/rap2363/repos","events_url":"https://api.github.com/users/rap2363/events{/privacy}","received_events_url":"https://api.github.com/users/rap2363/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T21:37:46Z","updated_at":"2015-02-26T21:37:46Z","body":"I'm not sure if you've figured out how to handle this correctly, but I use a workaround to deal with just one gltf. You can compress the output .bin and .glsl shader files (I use base64 compression) and then append the string as a data uri on the appropriate keys in your gltf json.\r\n\r\nI think the schema for the .bin buffers is: \r\n\"uri\": \"data:application/octet-stream;base64\"+compressedBase64String\r\n\r\nAnd for the glsl shaders:\r\n\"uri\": \"data:text/plain;base64\"+compressedBase64String\r\n\r\nThere may also be a flag on the collada2gltf command line tool you can set to compress these and set them in the gltf automatically, but I can't seem to find any option like that, so you may have to do the compression yourself.\r\n\r\nHope this helps,\r\nRohan"}}