{"action":"closed","issue":{"url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1713","repository_url":"https://api.github.com/repos/Rajawali/Rajawali","labels_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1713/labels{/name}","comments_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1713/comments","events_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1713/events","html_url":"https://github.com/Rajawali/Rajawali/issues/1713","id":164258053,"number":1713,"title":"Override mtl file when parsing OBJ file","user":{"login":"power7714","id":1787869,"avatar_url":"https://avatars.githubusercontent.com/u/1787869?v=3","gravatar_id":"","url":"https://api.github.com/users/power7714","html_url":"https://github.com/power7714","followers_url":"https://api.github.com/users/power7714/followers","following_url":"https://api.github.com/users/power7714/following{/other_user}","gists_url":"https://api.github.com/users/power7714/gists{/gist_id}","starred_url":"https://api.github.com/users/power7714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/power7714/subscriptions","organizations_url":"https://api.github.com/users/power7714/orgs","repos_url":"https://api.github.com/users/power7714/repos","events_url":"https://api.github.com/users/power7714/events{/privacy}","received_events_url":"https://api.github.com/users/power7714/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-07T08:41:49Z","updated_at":"2016-07-16T20:26:06Z","closed_at":"2016-07-16T20:26:06Z","body":"#### Rajawali Version or Branch\r\nRajawali v1.1.337\r\n\r\n#### Device and Android Version\r\nAndroid 4.4.2\r\n\r\n#### Summary\r\nAssign image/texture to OBJ from drawable folder. Override mtl file. I would like to use any image I want as the texture for the OBJ model. Possibly a bitmap. Any ideas? Transitioning from v0.9 to current versions.\r\n\r\n#### Steps to Reproduce\r\n`LoaderOBJ objParser = new LoaderOBJ(mContext.getResources(),\r\n                    mTextureManager, R.raw.label_obj);\r\n            objParser.parse();\r\n\r\n            Object3D mObjectGroup = objParser.getParsedObject();\r\n\r\n            Material material = new Material();\r\n            material.enableLighting(true);\r\n            material.setDiffuseMethod(new DiffuseMethod.Lambert());\r\n            material.addTexture(new Texture(\"rajawaliTex\", R.drawable.graf));\r\n            material.setColorInfluence(0);\r\n            mObjectGroup.setMaterial(material);\r\n            getCurrentScene().addChild(mObjectGroup);`\r\n\r\n#### Trace or Log Output\r\nnone/ no crash\r\n\r\n@MasDennis @jwoolston "}}
{"actor":{"display_login":"power7714"}}