{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/9575","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/9575/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/9575/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/9575/events","html_url":"https://github.com/mrdoob/three.js/issues/9575","id":173073084,"number":9575,"title":"Loading an SVG with TextureLoader no longer works as of r78.","user":{"login":"Adam-Meisen","id":1029712,"avatar_url":"https://avatars.githubusercontent.com/u/1029712?v=3","gravatar_id":"","url":"https://api.github.com/users/Adam-Meisen","html_url":"https://github.com/Adam-Meisen","followers_url":"https://api.github.com/users/Adam-Meisen/followers","following_url":"https://api.github.com/users/Adam-Meisen/following{/other_user}","gists_url":"https://api.github.com/users/Adam-Meisen/gists{/gist_id}","starred_url":"https://api.github.com/users/Adam-Meisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adam-Meisen/subscriptions","organizations_url":"https://api.github.com/users/Adam-Meisen/orgs","repos_url":"https://api.github.com/users/Adam-Meisen/repos","events_url":"https://api.github.com/users/Adam-Meisen/events{/privacy}","received_events_url":"https://api.github.com/users/Adam-Meisen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T22:28:38Z","updated_at":"2016-08-26T13:35:05Z","closed_at":null,"body":"##### Description of the problem \r\nThe following code works in R77, but as of R78, the `onLoad` callback will never be called, even when `onProgress` shows the file is 100% loaded. As I was unable to find any documentation about this change, I wanted to bring it to your attention as a possible bug.\r\n\r\n```\r\nvar url = ; //any svg\r\nnew THREE.TextureLoader().load(url, () => {console.log(\"texture loaded\");}, (xhr) => {console.log((xhr.loaded / xhr.total * 100) + '% loaded');});\r\n```\r\n\r\n##### Three.js version\r\n\r\n- [x] Dev\r\n- [x] r80\r\n- [x] r79\r\n- [x] r78\r\n\r\n##### Browser\r\n\r\n- [x] All of them\r\n- [ ] Chrome\r\n- [ ] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/242736864","html_url":"https://github.com/mrdoob/three.js/issues/9575#issuecomment-242736864","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/9575","id":242736864,"user":{"login":"zwitter1","id":1789250,"avatar_url":"https://avatars.githubusercontent.com/u/1789250?v=3","gravatar_id":"","url":"https://api.github.com/users/zwitter1","html_url":"https://github.com/zwitter1","followers_url":"https://api.github.com/users/zwitter1/followers","following_url":"https://api.github.com/users/zwitter1/following{/other_user}","gists_url":"https://api.github.com/users/zwitter1/gists{/gist_id}","starred_url":"https://api.github.com/users/zwitter1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwitter1/subscriptions","organizations_url":"https://api.github.com/users/zwitter1/orgs","repos_url":"https://api.github.com/users/zwitter1/repos","events_url":"https://api.github.com/users/zwitter1/events{/privacy}","received_events_url":"https://api.github.com/users/zwitter1/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T13:35:05Z","updated_at":"2016-08-26T13:35:05Z","body":"I too am having a problem with TextureLoader, though I'm uncertain yet if the issue aligns with the problem your having with svgs. In my case (I think this is the majority of the problem) I am using NodeWebkit (nwjs), and images that used to load fine in the days of THREE.ImageUtils.loadTexture no longer load using TextureLoader.\r\n\r\nI am trying to load a simple png file to use in a particles object, but while I get a 200 status code indicating a successful load (debugging the loader in three.js) and a 100% complete from the onProgress, I do not get an image out of my texture. I simply get no errors or warnings and a bunch of black holes where my particles should be.\r\n\r\nI'm going to try to set it up in a simple node server and test there next.      "}}
{"actor":{"display_login":"zwitter1"}}