{"action":"created","issue":{"url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/325","repository_url":"https://api.github.com/repos/jeromeetienne/AR.js","labels_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/325/comments","events_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/325/events","html_url":"https://github.com/jeromeetienne/AR.js/issues/325","id":314358584,"node_id":"MDU6SXNzdWUzMTQzNTg1ODQ=","number":325,"title":"Always black objects","user":{"login":"KrisTi969","id":18371212,"node_id":"MDQ6VXNlcjE4MzcxMjEy","avatar_url":"https://avatars2.githubusercontent.com/u/18371212?v=4","gravatar_id":"","url":"https://api.github.com/users/KrisTi969","html_url":"https://github.com/KrisTi969","followers_url":"https://api.github.com/users/KrisTi969/followers","following_url":"https://api.github.com/users/KrisTi969/following{/other_user}","gists_url":"https://api.github.com/users/KrisTi969/gists{/gist_id}","starred_url":"https://api.github.com/users/KrisTi969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrisTi969/subscriptions","organizations_url":"https://api.github.com/users/KrisTi969/orgs","repos_url":"https://api.github.com/users/KrisTi969/repos","events_url":"https://api.github.com/users/KrisTi969/events{/privacy}","received_events_url":"https://api.github.com/users/KrisTi969/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-04-14T20:16:12Z","updated_at":"2018-12-18T18:52:19Z","closed_at":"2018-07-03T13:42:23Z","author_association":"NONE","body":"Hey guys!\r\n\r\nThe problem i am facing is that whenever i use a 3d object, (.obj) it always renders as black, and simply ignores the textures.\r\n\r\nHere's my code:\r\n```\r\n```<!doctype HTML>\r\n<html>\r\n<script src=\"https://aframe.io/releases/0.8.0/aframe.min.js\"></script>\r\n<script src=\"https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js\"> </script>\r\n<body style='margin : 0px; overflow: hidden;'>\r\n<a-scene embedded arjs>\r\n    <a-marker preset=\"hiro\">\r\n        <a-entity scale=\"2 2 2\"\r\n                obj-model=\"obj: {{asset('images/ar/wishdomship.obj')}};\r\n            mtl: {{asset('images/ar/wishdomship.mtl')}}\">\r\n        </a-entity>    </a-marker>\r\n    <a-entity camera></a-entity>\r\n</a-scene>\r\n</body>\r\n</html>\r\n```\r\n\r\n> And here's the .mtl file:\r\n\r\n```\r\nnewmtl material0\r\nillum 4\r\nKd 0.00 0.00 0.00\r\nKa 0.00 0.00 0.00\r\nTf 1.00 1.00 1.00\r\nmap_Kd wisdomshiptex2.jpg\r\nNi 1.00\r\nKs 0.50 0.50 0.50\r\nNs 18.00\r\n```\r\n\r\nThanks a lot !\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/comments/448329149","html_url":"https://github.com/jeromeetienne/AR.js/issues/325#issuecomment-448329149","issue_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/325","id":448329149,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODMyOTE0OQ==","user":{"login":"commentatorboy","id":1793964,"node_id":"MDQ6VXNlcjE3OTM5NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1793964?v=4","gravatar_id":"","url":"https://api.github.com/users/commentatorboy","html_url":"https://github.com/commentatorboy","followers_url":"https://api.github.com/users/commentatorboy/followers","following_url":"https://api.github.com/users/commentatorboy/following{/other_user}","gists_url":"https://api.github.com/users/commentatorboy/gists{/gist_id}","starred_url":"https://api.github.com/users/commentatorboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commentatorboy/subscriptions","organizations_url":"https://api.github.com/users/commentatorboy/orgs","repos_url":"https://api.github.com/users/commentatorboy/repos","events_url":"https://api.github.com/users/commentatorboy/events{/privacy}","received_events_url":"https://api.github.com/users/commentatorboy/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T18:52:19Z","updated_at":"2018-12-18T18:52:19Z","author_association":"NONE","body":"I still have this problem. Even if I tried to convert it to .glb\r\nHere is my code:\r\n\r\n```\r\n<!doctype HTML>\r\n<html>\r\n<link rel=\"stylesheet\" href=\"{{ URL::asset('css/show.css') }}\">\r\n\r\n<script src=\"https://aframe.io/releases/0.8.0/aframe.min.js\"></script>\r\n<script src=\"https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js\"> </script>\r\n<script src=\"//cdn.rawgit.com/donmccurdy/aframe-extras/v4.2.0/dist/aframe-extras.min.js\"></script>\r\n<script src=\"https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js\"></script>\r\n\r\n<body style='margin : 0px; overflow: hidden;'>\r\n\r\n    <a-scene inspector=\"url: https://aframe-inspector-20181128-abjyfktcpl.now.sh/aframe-inspector.min.js\" embedded arjs>\r\n\t  <a-assets>\r\n        @if ($ar_object->link)\r\n            <a-asset-item id=\"tree\" src=\"{{ $ar_object->link }}\" crossOrigin=\"anonymous\">\r\n\r\n        @else\r\n            <a-asset-item id=\"tree\" src=\"{{ URL::asset('uploads/'.$ar_object->uid.'.glb') }}\">\r\n        @endif\r\n\r\n            </a-assets>\r\n  \t<a-marker preset='custom' type='pattern' url='{{ URL::asset('uploads/we3d.patt') }}'>\r\n           <a-entity id=\"entity\" position=\"0 0 0\"\r\n           material=\"color: red\" rotation=\"0 0 0\"\r\n           light=\"type: spot; color: #F00; intensity: 5\" scale=\"3 3 3\"\r\n           gltf-model=\"#tree\">\r\n            <a-animation attribute=\"rotation\"\r\n                dur=\"10000\"\r\n                fill=\"forwards\"\r\n                to=\"0 0 360\"\r\n                repeat=\"indefinite\">\r\n            </a-animation>\r\n        </a-entity>\r\n        </a-marker>\r\n\r\n      <a-entity camera></a-entity>\r\n\r\n    </a-scene>\r\n    <button id=\"pause_button\" onclick=\"pauseAnimation();\">pause animation</button>\r\n    <button id=\"play_button\" onclick=\"playAnimation();\">play animation</button>\r\n\r\n  </body>\r\n  <script>\r\n\r\n        var el = document.querySelector('#entity');\r\n\r\n        var pause_button = document.querySelector('#pause_button');\r\n        var play_button = document.querySelector('#play_button');\r\n        play_button.style.display = 'none';\r\n        function pauseAnimation(){\r\n            el.pause();\r\n\r\n            pause_button.style.display = 'none';\r\n            play_button.style.display = 'block';\r\n        }\r\n        function playAnimation(){\r\n            el.play();\r\n\r\n            pause_button.style.display = 'block';\r\n            play_button.style.display = 'none';\r\n\r\n        }\r\n\r\n\r\n  </script>\r\n\r\n</html>\r\n```\r\n\r\n"}}
{"actor":{"display_login":"commentatorboy"}}