{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7003","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7003/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7003/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7003/events","html_url":"https://github.com/mrdoob/three.js/issues/7003","id":101211336,"number":7003,"title":"drawcall.index?","user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Question","name":"Question","color":"dad9ff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-15T21:35:08Z","updated_at":"2015-08-16T18:33:18Z","closed_at":null,"body":"I was just refactoring `WebGLRenderer`'s `renderBufferDirect` a bit. In the process I lost `drawcall.index` support. https://github.com/mrdoob/three.js/commit/2e091a5429655af38481965eb93381a82af868d5\r\n\r\nAs far as I can see only http://threejs.org/examples/#webgl_buffergeometry uses it...?\r\nDoes anyone use this feature?"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/131599099","html_url":"https://github.com/mrdoob/three.js/issues/7003#issuecomment-131599099","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7003","id":131599099,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T18:33:18Z","updated_at":"2015-08-16T18:33:18Z","body":">> the indices are just an incrementing number\r\n\r\n> Not so. Notice the indices reset to zero when they get too big.\r\n\r\n> ```javascript\r\nindices[ i ] = i % ( 3 * chunkSize );\r\n```\r\n\r\n> The index offset accommodates for that.\r\n\r\n> ```javascript\r\nindexOffset = i * chunkSize * 3;\r\n```\r\n\r\nAh. True... Sorry, I misunderstood."}}