{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glTF/issues/526","repository_url":"https://api.github.com/repos/KhronosGroup/glTF","labels_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/526/comments","events_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/526/events","html_url":"https://github.com/KhronosGroup/glTF/issues/526","id":127928988,"number":526,"title":"Using glTF without COLLADA inputs.","user":{"login":"5chdn","id":15729797,"avatar_url":"https://avatars.githubusercontent.com/u/15729797?v=3","gravatar_id":"","url":"https://api.github.com/users/5chdn","html_url":"https://github.com/5chdn","followers_url":"https://api.github.com/users/5chdn/followers","following_url":"https://api.github.com/users/5chdn/following{/other_user}","gists_url":"https://api.github.com/users/5chdn/gists{/gist_id}","starred_url":"https://api.github.com/users/5chdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5chdn/subscriptions","organizations_url":"https://api.github.com/users/5chdn/orgs","repos_url":"https://api.github.com/users/5chdn/repos","events_url":"https://api.github.com/users/5chdn/events{/privacy}","received_events_url":"https://api.github.com/users/5chdn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-21T13:54:57Z","updated_at":"2016-06-15T13:10:17Z","closed_at":"2016-06-15T13:10:17Z","body":"I see glTF could be a promising transfer format for my WebGL project. I have very simple geometries which basicly only contain vertex, index and colour buffers. I have difficulties to understand how to utilize glTF without going through the step of generating `dae` files first.\r\n\r\nCould I simply create a `buffer` containing a base64 encoded blob of my arrays? How to format the arraybuffers correctly? What else do I need for a minimal gltf file according to specification, `bufferViews` for each vertex, index, and color buffer, and `accessors` to describe the data?\r\n\r\nFor example, five lines:\r\n\r\n    [       // vertex buffer, FLOAT, VEC2\r\n      0.0857, 0.0759,\r\n      0.0367, 0.9726,\r\n      0.9678, 0.0318,\r\n      0.9754, 0.9327\r\n    ],\r\n    [       // index buffer, U_SHORT, SCALAR\r\n      0, 2,\r\n      2, 4,\r\n      4, 0,\r\n      0, 1,\r\n      1, 4\r\n    ]\r\n\r\nIf you could clarify that or help me to build a minimal working glft file, would really help me to build gltf into my tool chain. Thanks."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glTF/issues/comments/226181993","html_url":"https://github.com/KhronosGroup/glTF/issues/526#issuecomment-226181993","issue_url":"https://api.github.com/repos/KhronosGroup/glTF/issues/526","id":226181993,"user":{"login":"5chdn","id":15729797,"avatar_url":"https://avatars.githubusercontent.com/u/15729797?v=3","gravatar_id":"","url":"https://api.github.com/users/5chdn","html_url":"https://github.com/5chdn","followers_url":"https://api.github.com/users/5chdn/followers","following_url":"https://api.github.com/users/5chdn/following{/other_user}","gists_url":"https://api.github.com/users/5chdn/gists{/gist_id}","starred_url":"https://api.github.com/users/5chdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5chdn/subscriptions","organizations_url":"https://api.github.com/users/5chdn/orgs","repos_url":"https://api.github.com/users/5chdn/repos","events_url":"https://api.github.com/users/5chdn/events{/privacy}","received_events_url":"https://api.github.com/users/5chdn/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T13:10:17Z","updated_at":"2016-06-15T13:10:17Z","body":"> Something is wrong with my assumptions.\r\n\r\nAh, it's a little-endian. https://jsfiddle.net/s1bzc0zc/6/\r\n\r\nNow I was able to write my custom buffer. https://jsfiddle.net/6cevt681/1/\r\n\r\nThanks for your patience."}}
{"actor":{"display_login":"5chdn"}}