{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/9997","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/9997/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/9997/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/9997/events","html_url":"https://github.com/mrdoob/three.js/issues/9997","id":186993650,"number":9997,"title":"Maya exported json file not able to play animation and display multiple texture","user":{"login":"siddrizban","id":15338165,"avatar_url":"https://avatars.githubusercontent.com/u/15338165?v=3","gravatar_id":"","url":"https://api.github.com/users/siddrizban","html_url":"https://github.com/siddrizban","followers_url":"https://api.github.com/users/siddrizban/followers","following_url":"https://api.github.com/users/siddrizban/following{/other_user}","gists_url":"https://api.github.com/users/siddrizban/gists{/gist_id}","starred_url":"https://api.github.com/users/siddrizban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddrizban/subscriptions","organizations_url":"https://api.github.com/users/siddrizban/orgs","repos_url":"https://api.github.com/users/siddrizban/repos","events_url":"https://api.github.com/users/siddrizban/events{/privacy}","received_events_url":"https://api.github.com/users/siddrizban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-03T07:36:42Z","updated_at":"2016-11-10T05:14:30Z","closed_at":null,"body":"Hi Devs,\r\nI am trying to display a 3D model using .json file with the help of JSONLoader, but it display only black screen. I have exported .json from **'maya exporter plugin'**. I want to load all its texture from json file only. I have tried several ways but still result is far away? I have spend lots of time on Google, Stack Overflow, Clara.io but not getting any relevant answer.  I already added this issue on SO, but not found any solution. \r\n[Here it is link : ](http://stackoverflow.com/questions/40299829/texture-and-animation-not-working-using-jsonloader-with-maya-exported-models-in)\r\n\r\n**I am being confused that is it possible to render maya exported json with Three.js till current release or not**. Please help me to sort out this issue.\r\n\r\n**Here it is my json file:**\r\n[new-heart.txt](https://github.com/mrdoob/three.js/files/568367/new-heart.txt)\r\n\r\n\r\n**Here it is my json (material array):**\r\n\r\n\"materials\": [{\r\n        \"opacity\": 0.0, \r\n        \"mapDiffuseRepeat\": [1, 1], \r\n        \"mapNormalFactor\": 1, \r\n        \"depthTest\": true, \r\n        \"colorDiffuse\": [0.5, 0.5, 0.5], \r\n        \"vertexColors\": false, \r\n        \"blending\": \"NormalBlending\", \r\n        \"mapDiffuseAnisotropy\": 4, \r\n        \"shading\": \"Lambert\", \r\n        \"transparent\": true, \r\n        \"depthWrite\": true, \r\n        \"mapNormalRepeat\": [1, 1], \r\n        \"mapNormalWrap\": [\"repeat\", \"repeat\"], \r\n        \"DbgName\": \"Arota\", \r\n        \"mapNormalAnisotropy\": 4, \r\n        \"mapNormal\": \"Heart_Arota_NM.jpg\", \r\n        \"mapDiffuseWrap\": [\"repeat\", \"repeat\"], \r\n        \"mapDiffuse\": \"Heart_Arota_Diffuse.jpg\"\r\n    }, {\r\n        \"opacity\": 0.0, \r\n        \"mapDiffuseRepeat\": [1, 1], \r\n        \"mapNormalFactor\": 1, \r\n        \"depthTest\": true, \r\n        \"colorDiffuse\": [0.5, 0.5, 0.5], \r\n        \"vertexColors\": false, \r\n        \"blending\": \"NormalBlending\", \r\n        \"mapDiffuseAnisotropy\": 4, \r\n        \"shading\": \"Lambert\", \r\n        \"transparent\": true, \r\n        \"depthWrite\": true, \r\n        \"mapNormalRepeat\": [1, 1], \r\n        \"mapNormalWrap\": [\"repeat\", \"repeat\"], \r\n        \"DbgName\": \"Full_Heart1\", \r\n        \"mapNormalAnisotropy\": 4, \r\n        \"mapNormal\": \"Full_Heart_NM.jpg\", \r\n        \"mapDiffuseWrap\": [\"repeat\", \"repeat\"], \r\n        \"mapDiffuse\": \"Full_Heart_Diffuse.jpg\"\r\n    }]\r\n\r\n**Here it is my code:**\r\n\r\n``` js\r\nvar jsonloader = new THREE.JSONLoader( manager ); \r\njsonloader.load( jsonFileName, function( geometry, materials ) { \r\n    mesh = new THREE.Mesh(geometry, new THREE.MultiMaterial(materials)); \r\n    scene.add( mesh ); \r\n} );\r\n```\r\n**Here it is my screen shot:**  \r\n\r\n![black-screen](https://cloud.githubusercontent.com/assets/15338165/19958377/ca74d308-a1c4-11e6-82a7-72ead17859bc.png)\r\n\r\n\r\n##### Description of the problem \r\n\r\n\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [X] r82\r\n- [ ] ...\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##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/259603422","html_url":"https://github.com/mrdoob/three.js/issues/9997#issuecomment-259603422","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/9997","id":259603422,"user":{"login":"ascloutier","id":5856984,"avatar_url":"https://avatars.githubusercontent.com/u/5856984?v=3","gravatar_id":"","url":"https://api.github.com/users/ascloutier","html_url":"https://github.com/ascloutier","followers_url":"https://api.github.com/users/ascloutier/followers","following_url":"https://api.github.com/users/ascloutier/following{/other_user}","gists_url":"https://api.github.com/users/ascloutier/gists{/gist_id}","starred_url":"https://api.github.com/users/ascloutier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascloutier/subscriptions","organizations_url":"https://api.github.com/users/ascloutier/orgs","repos_url":"https://api.github.com/users/ascloutier/repos","events_url":"https://api.github.com/users/ascloutier/events{/privacy}","received_events_url":"https://api.github.com/users/ascloutier/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T05:14:30Z","updated_at":"2016-11-10T05:14:30Z","body":"The latest plugin code on the dev branch should have working transparency. From what I can tell it should also be in the r82 release. I can look into it again. The values in your file definitely look wrong, but with out seeing the maya file it's hard to know for sure where the problem is. \r\n\r\nI will say that, while I've managed to make some improvements, the maya plugin is still not in very good shape. I would like to rewrite it from scratch but I'm not going to be able to even start that until the new year and I'm not exactly sure when. Until that happens, animation doesn't seem like it will work. In the way it was originally written I've never been able to successfully export animations. \r\n\r\nThe person (people) who wrote the Blender plugin did a much better job there than was done on the Maya plugin. You may have more luck exporting from Blender until I can (hopefully) get around to creating a new Maya plugin. "}}
{"actor":{"display_login":"ascloutier"}}