{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/1412","repository_url":"https://api.github.com/repos/processing/p5.js","labels_url":"https://api.github.com/repos/processing/p5.js/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/1412/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/1412/events","html_url":"https://github.com/processing/p5.js/issues/1412","id":154618296,"number":1412,"title":"model() not displaying .obj files","user":{"login":"k808a","id":10523356,"avatar_url":"https://avatars.githubusercontent.com/u/10523356?v=3","gravatar_id":"","url":"https://api.github.com/users/k808a","html_url":"https://github.com/k808a","followers_url":"https://api.github.com/users/k808a/followers","following_url":"https://api.github.com/users/k808a/following{/other_user}","gists_url":"https://api.github.com/users/k808a/gists{/gist_id}","starred_url":"https://api.github.com/users/k808a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k808a/subscriptions","organizations_url":"https://api.github.com/users/k808a/orgs","repos_url":"https://api.github.com/users/k808a/repos","events_url":"https://api.github.com/users/k808a/events{/privacy}","received_events_url":"https://api.github.com/users/k808a/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2016-05-13T02:00:07Z","updated_at":"2016-09-05T19:42:07Z","closed_at":"2016-07-13T12:14:16Z","body":"Been trying to re-create the use of model() and loadModel() from the P5.js examples page (  [https://p5js.org/reference/#/p5/model](url) ) without success.\r\n\r\nAll I get is the gray canvas, without the spinning teapot. Results are the same with the P5 editor app and on my Apache server. (The editor app doesn't display any errors when I run the code, BTW.)\r\n\r\nThe code I'm using (straight copy-paste from the examples page) is this: \r\n\r\n`\r\n//draw a spinning teapot\r\nvar teapot;\r\n\r\nfunction setup(){\r\n  createCanvas(100, 100, WEBGL);\r\n\r\n  teapot = loadModel('assets/teapot.obj');\r\n}\r\n\r\nfunction draw(){\r\n  background(200);\r\n  rotateX(frameCount * 0.01);\r\n  rotateY(frameCount * 0.01);\r\n  model(teapot);\r\n}\r\n`\r\n\r\nI'm running p5.js v0.5.0 May 02, 2016 (which does seem to have code for loadModel() and model() implemented) with a 264KB teapot.obj file I found from the web. (The .obj file shows up properly in Photoshop, so I'm fairly confident it's OK. I also tried other .obj files, same result.)\r\n\r\nI have tried moving teapot.obj out of the assets folder to the same level as sketch.js, also no luck.\r\n\r\nAny insights? \r\n"},"comment":{"url":"https://api.github.com/repos/processing/p5.js/issues/comments/244803774","html_url":"https://github.com/processing/p5.js/issues/1412#issuecomment-244803774","issue_url":"https://api.github.com/repos/processing/p5.js/issues/1412","id":244803774,"user":{"login":"IggyZuk","id":1710856,"avatar_url":"https://avatars.githubusercontent.com/u/1710856?v=3","gravatar_id":"","url":"https://api.github.com/users/IggyZuk","html_url":"https://github.com/IggyZuk","followers_url":"https://api.github.com/users/IggyZuk/followers","following_url":"https://api.github.com/users/IggyZuk/following{/other_user}","gists_url":"https://api.github.com/users/IggyZuk/gists{/gist_id}","starred_url":"https://api.github.com/users/IggyZuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IggyZuk/subscriptions","organizations_url":"https://api.github.com/users/IggyZuk/orgs","repos_url":"https://api.github.com/users/IggyZuk/repos","events_url":"https://api.github.com/users/IggyZuk/events{/privacy}","received_events_url":"https://api.github.com/users/IggyZuk/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T19:42:07Z","updated_at":"2016-09-05T19:42:07Z","body":"I seem to be experiencing exactly the same issues as @nkolban, the code runs fine on **FireFox**, but not on **Chrome**. My setup is almost identical. Any fix for this?"}}
{"actor":{"display_login":"IggyZuk"}}