{"action":"opened","number":6664,"pull_request":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/6664","id":37240370,"html_url":"https://github.com/mrdoob/three.js/pull/6664","diff_url":"https://github.com/mrdoob/three.js/pull/6664.diff","patch_url":"https://github.com/mrdoob/three.js/pull/6664.patch","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/6664","number":6664,"state":"open","locked":false,"title":"added option to remove unused texcoord from primitives","user":{"login":"tongwing","id":12794641,"avatar_url":"https://avatars.githubusercontent.com/u/12794641?v=3","gravatar_id":"","url":"https://api.github.com/users/tongwing","html_url":"https://github.com/tongwing","followers_url":"https://api.github.com/users/tongwing/followers","following_url":"https://api.github.com/users/tongwing/following{/other_user}","gists_url":"https://api.github.com/users/tongwing/gists{/gist_id}","starred_url":"https://api.github.com/users/tongwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongwing/subscriptions","organizations_url":"https://api.github.com/users/tongwing/orgs","repos_url":"https://api.github.com/users/tongwing/repos","events_url":"https://api.github.com/users/tongwing/events{/privacy}","received_events_url":"https://api.github.com/users/tongwing/received_events","type":"User","site_admin":false},"body":"Hi, I encountered a rendering artifact when using ColladaLoader with a model from 3ds Max exported using OpenCollada. The issue was narrowed down to some primitives having more than one UV channels, but the material that it's using being bounded to one channel. The bind_vertex_input element is currently not processed so it ends up using the wrong channel.\r\n\r\n        <triangles material=\"Material__773309302_1\" count=\"168\">\r\n          <input semantic=\"VERTEX\" source=\"#geom-SHELF2-vertices\" offset=\"0\"/>\r\n          <input semantic=\"NORMAL\" source=\"#geom-SHELF2-normals\" offset=\"1\"/>\r\n          <input semantic=\"TEXCOORD\" source=\"#geom-SHELF2-map1\" offset=\"2\" set=\"0\"/>\r\n          <input semantic=\"TEXCOORD\" source=\"#geom-SHELF2-map3\" offset=\"3\" set=\"2\"/>\r\n\r\nmaterial definition:\r\n\r\n              <instance_material symbol=\"Material__773309302_1\" target=\"#Material__773309302-material\">\r\n                <bind_vertex_input semantic=\"CHANNEL3\" input_semantic=\"TEXCOORD\" input_set=\"2\"/>\r\n              </instance_material>\r\n\r\nAfter identifying the problem I wrote a patch to remove unused texcoord when building the scene graph. The patch is disabled by default and can be enabled by setting options.removeUnusedUV=true. See the before and after effect of using this option.\r\n\r\n![1](https://cloud.githubusercontent.com/assets/12794641/8056082/6294321e-0ed7-11e5-9d80-f0885d435319.PNG)\r\n![2](https://cloud.githubusercontent.com/assets/12794641/8056086/679c53ae-0ed7-11e5-801f-75616c4c1abb.PNG)\r\n\r\n\r\n","created_at":"2015-06-09T10:46:27Z","updated_at":"2015-06-09T10:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrdoob/three.js/pulls/6664/commits","review_comments_url":"https://api.github.com/repos/mrdoob/three.js/pulls/6664/comments","review_comment_url":"https://api.github.com/repos/mrdoob/three.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/6664/comments","statuses_url":"https://api.github.com/repos/mrdoob/three.js/statuses/2d78d0f6bd0dea7bd5ddba6031c8366dbfb69f9f","head":{"label":"tongwing:expt-colladaloader","ref":"expt-colladaloader","sha":"2d78d0f6bd0dea7bd5ddba6031c8366dbfb69f9f","user":{"login":"tongwing","id":12794641,"avatar_url":"https://avatars.githubusercontent.com/u/12794641?v=3","gravatar_id":"","url":"https://api.github.com/users/tongwing","html_url":"https://github.com/tongwing","followers_url":"https://api.github.com/users/tongwing/followers","following_url":"https://api.github.com/users/tongwing/following{/other_user}","gists_url":"https://api.github.com/users/tongwing/gists{/gist_id}","starred_url":"https://api.github.com/users/tongwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongwing/subscriptions","organizations_url":"https://api.github.com/users/tongwing/orgs","repos_url":"https://api.github.com/users/tongwing/repos","events_url":"https://api.github.com/users/tongwing/events{/privacy}","received_events_url":"https://api.github.com/users/tongwing/received_events","type":"User","site_admin":false},"repo":{"id":37126014,"name":"three.js","full_name":"tongwing/three.js","owner":{"login":"tongwing","id":12794641,"avatar_url":"https://avatars.githubusercontent.com/u/12794641?v=3","gravatar_id":"","url":"https://api.github.com/users/tongwing","html_url":"https://github.com/tongwing","followers_url":"https://api.github.com/users/tongwing/followers","following_url":"https://api.github.com/users/tongwing/following{/other_user}","gists_url":"https://api.github.com/users/tongwing/gists{/gist_id}","starred_url":"https://api.github.com/users/tongwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongwing/subscriptions","organizations_url":"https://api.github.com/users/tongwing/orgs","repos_url":"https://api.github.com/users/tongwing/repos","events_url":"https://api.github.com/users/tongwing/events{/privacy}","received_events_url":"https://api.github.com/users/tongwing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tongwing/three.js","description":"JavaScript 3D library.","fork":true,"url":"https://api.github.com/repos/tongwing/three.js","forks_url":"https://api.github.com/repos/tongwing/three.js/forks","keys_url":"https://api.github.com/repos/tongwing/three.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tongwing/three.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tongwing/three.js/teams","hooks_url":"https://api.github.com/repos/tongwing/three.js/hooks","issue_events_url":"https://api.github.com/repos/tongwing/three.js/issues/events{/number}","events_url":"https://api.github.com/repos/tongwing/three.js/events","assignees_url":"https://api.github.com/repos/tongwing/three.js/assignees{/user}","branches_url":"https://api.github.com/repos/tongwing/three.js/branches{/branch}","tags_url":"https://api.github.com/repos/tongwing/three.js/tags","blobs_url":"https://api.github.com/repos/tongwing/three.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tongwing/three.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tongwing/three.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/tongwing/three.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tongwing/three.js/statuses/{sha}","languages_url":"https://api.github.com/repos/tongwing/three.js/languages","stargazers_url":"https://api.github.com/repos/tongwing/three.js/stargazers","contributors_url":"https://api.github.com/repos/tongwing/three.js/contributors","subscribers_url":"https://api.github.com/repos/tongwing/three.js/subscribers","subscription_url":"https://api.github.com/repos/tongwing/three.js/subscription","commits_url":"https://api.github.com/repos/tongwing/three.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/tongwing/three.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/tongwing/three.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/tongwing/three.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/tongwing/three.js/contents/{+path}","compare_url":"https://api.github.com/repos/tongwing/three.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tongwing/three.js/merges","archive_url":"https://api.github.com/repos/tongwing/three.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tongwing/three.js/downloads","issues_url":"https://api.github.com/repos/tongwing/three.js/issues{/number}","pulls_url":"https://api.github.com/repos/tongwing/three.js/pulls{/number}","milestones_url":"https://api.github.com/repos/tongwing/three.js/milestones{/number}","notifications_url":"https://api.github.com/repos/tongwing/three.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tongwing/three.js/labels{/name}","releases_url":"https://api.github.com/repos/tongwing/three.js/releases{/id}","created_at":"2015-06-09T10:35:45Z","updated_at":"2015-06-09T10:35:54Z","pushed_at":"2015-06-09T10:38:07Z","git_url":"git://github.com/tongwing/three.js.git","ssh_url":"git@github.com:tongwing/three.js.git","clone_url":"https://github.com/tongwing/three.js.git","svn_url":"https://github.com/tongwing/three.js","homepage":"http://threejs.org/","size":381902,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mrdoob:master","ref":"master","sha":"5c7e0df9b100ba40cdcaaf530196290e16c34858","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},"repo":{"id":576201,"name":"three.js","full_name":"mrdoob/three.js","owner":{"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},"private":false,"html_url":"https://github.com/mrdoob/three.js","description":"JavaScript 3D library.","fork":false,"url":"https://api.github.com/repos/mrdoob/three.js","forks_url":"https://api.github.com/repos/mrdoob/three.js/forks","keys_url":"https://api.github.com/repos/mrdoob/three.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrdoob/three.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrdoob/three.js/teams","hooks_url":"https://api.github.com/repos/mrdoob/three.js/hooks","issue_events_url":"https://api.github.com/repos/mrdoob/three.js/issues/events{/number}","events_url":"https://api.github.com/repos/mrdoob/three.js/events","assignees_url":"https://api.github.com/repos/mrdoob/three.js/assignees{/user}","branches_url":"https://api.github.com/repos/mrdoob/three.js/branches{/branch}","tags_url":"https://api.github.com/repos/mrdoob/three.js/tags","blobs_url":"https://api.github.com/repos/mrdoob/three.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrdoob/three.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrdoob/three.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrdoob/three.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrdoob/three.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mrdoob/three.js/languages","stargazers_url":"https://api.github.com/repos/mrdoob/three.js/stargazers","contributors_url":"https://api.github.com/repos/mrdoob/three.js/contributors","subscribers_url":"https://api.github.com/repos/mrdoob/three.js/subscribers","subscription_url":"https://api.github.com/repos/mrdoob/three.js/subscription","commits_url":"https://api.github.com/repos/mrdoob/three.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrdoob/three.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrdoob/three.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrdoob/three.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrdoob/three.js/contents/{+path}","compare_url":"https://api.github.com/repos/mrdoob/three.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrdoob/three.js/merges","archive_url":"https://api.github.com/repos/mrdoob/three.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrdoob/three.js/downloads","issues_url":"https://api.github.com/repos/mrdoob/three.js/issues{/number}","pulls_url":"https://api.github.com/repos/mrdoob/three.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mrdoob/three.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mrdoob/three.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrdoob/three.js/labels{/name}","releases_url":"https://api.github.com/repos/mrdoob/three.js/releases{/id}","created_at":"2010-03-23T18:58:01Z","updated_at":"2015-06-09T09:47:08Z","pushed_at":"2015-06-07T22:03:46Z","git_url":"git://github.com/mrdoob/three.js.git","ssh_url":"git@github.com:mrdoob/three.js.git","clone_url":"https://github.com/mrdoob/three.js.git","svn_url":"https://github.com/mrdoob/three.js","homepage":"http://threejs.org/","size":381902,"stargazers_count":19858,"watchers_count":19858,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":5930,"mirror_url":null,"open_issues_count":843,"forks":5930,"open_issues":843,"watchers":19858,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6664"},"html":{"href":"https://github.com/mrdoob/three.js/pull/6664"},"issue":{"href":"https://api.github.com/repos/mrdoob/three.js/issues/6664"},"comments":{"href":"https://api.github.com/repos/mrdoob/three.js/issues/6664/comments"},"review_comments":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6664/comments"},"review_comment":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6664/commits"},"statuses":{"href":"https://api.github.com/repos/mrdoob/three.js/statuses/2d78d0f6bd0dea7bd5ddba6031c8366dbfb69f9f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":47,"deletions":2,"changed_files":1}}