{"issue":{"created_at":"2011-11-29T19:54:44Z","state":"open","updated_at":"2011-12-01T13:07:17Z","comments":5,"user":{"gravatar_id":"dd4ca09a005654a4641e4675fa8278e8","id":1228934,"url":"https://api.github.com/users/Xroy","login":"Xroy","avatar_url":"https://secure.gravatar.com/avatar/dd4ca09a005654a4641e4675fa8278e8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi,\r\n\r\nI'm trying to load a collada file on a application, and I'm getting this error:\r\n\r\nshader is null\r\n\r\nshader.material.opacity = !shader.material.opacity ? 1 : shader.material.opacity;\r\n\r\non ColladaLoader.js (linha 621)\r\n\r\n------------------------\r\n\r\nstack trace\r\n\r\ncreateSceneGraph () on ColladaLoader.js (line 621)\r\nnode = Node { id=\"ID3\", name=\"X\", nodes=[52], more...}\r\nparent = Node { id=\"ID2\", name=\"instance_0\", nodes=[1], more...}\r\n\r\ncreateSceneGraph () on ColladaLoader.js (line 690)\r\nnode = Node { id=\"ID2\", name=\"instance_0\", nodes=[1], more...}\r\nparent = Node { name=\"SketchUp\", nodes=[1], controllers=[0], more...}\r\n\r\ncreateSceneGraph () on ColladaLoader.js (line 690)\r\nnode = Node { name=\"SketchUp\", nodes=[1], controllers=[0], more...}\r\nparent = undefined\r\n\r\nparse () on ColladaLoader.js (line 109)\r\ndoc = Document\r\ncallBack = collada_load_handler()\r\nurl = \"test.dae?rnd=0.9813711857463775\"\r\n\r\nonreadystatechange() on ColladaLoader.js (line 61)\r\n\r\n\r\n-------------------------------------\r\n\r\nAnyone knows why?","assignee":null,"id":2391534,"labels":[{"name":"Bug","color":"ffcfcf","url":"https://api.github.com/repos/mrdoob/three.js/labels/Bug"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":813,"title":"Collada import don't work - Error: \"shader is null\"","html_url":"https://github.com/mrdoob/three.js/issues/813","closed_at":null,"url":"https://api.github.com/repos/mrdoob/three.js/issues/813","milestone":null},"action":"created","comment":{"created_at":"2011-12-01T13:07:17Z","updated_at":"2011-12-01T13:07:17Z","user":{"gravatar_id":"dd4ca09a005654a4641e4675fa8278e8","id":1228934,"url":"https://api.github.com/users/Xroy","login":"Xroy","avatar_url":"https://secure.gravatar.com/avatar/dd4ca09a005654a4641e4675fa8278e8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I tryed to run my code with the if clause, but it doesn't work. I've returned the code to normal and made some simpler model to test. The test rendered, but with bugs.\r\n\r\nSee this examples:\r\n\r\nhttp://temp.projetosredirect.com.br/canvas/teste_webgl.html\r\nhttp://temp.projetosredirect.com.br/canvas/teste_canvas.html\r\n\r\nThe model should look like this:\r\n\r\nhttp://temp.projetosredirect.com.br/canvas/printscreen.jpg\r\n\r\n\r\nI think the problem is some dirt on the collada code, I'm generating it with SketchUP version 8.\r\n\r\nI don't have the permission to show the collada code of the original object yet, but as soon I get it I'll post it here.","id":2974488,"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/2974488"}}