{"action":"created","comment":{"url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/comments/88003014","pull_request_review_id":8580783,"id":88003014,"diff_hunk":"@@ -18,3 +20,154 @@ Using [A-Frame](https://aframe.io/), we will show you how to export a Blender mo\n ## Finding a model on Sketchfab\n \n ## View the demo\n+\n+In this guide, we’ll cook up an A-Frame scene containing a model from SketchFab. I chose a model of a Rift CV1 by Ti Kawamoto. It’s a nice model created with Blender, that goes with the theme of WebVR. Plus, the thought of recursive “VR within VR” is amusing..\n+For this lesson, I’m using Windows because that is what most VR devs use, but do please reach out to me if you have any questions about doing this in another OS! If you are comfortable setting up a site on a local dev server, feel free to ignore the parts about setting up http-server.\n+\n+## Instructions for: \n+one simple, locally hosted WebVR site with .dae and .obj versions of a Rift CV1 3D model.\n+\n+## Ingredients:\n+Blender \n+Rift CV1 .blend file from a creator on SketchFab\n+9 .jpg image textures that come with this .blend file\n+We will create:\n+2 model files (.dae and .obj)\n+1 texture mapping “material library” file (.mtl to go with the .obj)\n+2 directories\n+Local web server (we’ll use http-server)\n+Index.html file\n+\n+\n+# PART 1: GETTING THE “INGREDIENTS”\n+---\n+\n+## Get Blender\n+\n+![Image of Blender Home Page](https://github.com/WebVRRocks/webvrrocks/tree/master/creating/export-blender-to-aframe/img/BlenderSite.png)\n+\n+Go to https://www.blender.org/ and click on the big blue Download Blender button. You’ll come to the downloads page, where you can choose which installer to download, depending on your operating system. Mac, Windows and GNU/Linux are supported. Choose a mirror to download from (probably one closeby). Once you’ve downloaded the installer, open it, and click through the steps of the installation wizard. On Windows, Blender should end up in C:\\Program Files\\Blender Foundation\\Blender. \n+\n+## Make a directory with an index.html file in it\n+Here is some handy boilerplate code to use. make a new  file in your favorite text editor, and copy this into it. I like Sublime Text quite a bit, but any text editor is fine. Name it index.html so that the server can find it. We’ll come back to the code, later.\n+\n+'''\n+<!--.....................................................\n+Attribution for 3D model used in this scene: Oculus Rift CV1 by Ti is licensed under CC Attribution-NonCommercial\n+.........................................................-->\n+\n+<!DOCTYPE html>\n+   <head>\n+    <meta charset=\"utf-8\">\n+    <title>Exporting Blender Models from Sketchfab to A-Frame – WebVR Rocks</title>\n+    <script src=\"assets/js/aframe.min.js\"></script>\n+    <link rel=\"icon\" sizes=\"192x192\" href=\"https://aframe.io/images/aframe-logo-192.png\">\n+   </head>\n+  <body>\n+<!--All of the entities in your scene must be between the <a-scene> tags!-->\n+    <a-scene>\n+<!--......................................\n+It's a good idea to pre-load and cache your assets (stuff in the scene) by using an Asset System. This is an example of an Asset System. Everything in <a-assets> can be used as many times as you want in the scene! You can also use entities inline, without an Asset System: quicker to write, but slower to render. <asset-item> can include geometry, models, and materials\n+..........................................-->\n+    <a-assets>\n+    <a-asset-item id=\"Oculus-CV1-obj\" src=\"cv1_FF.obj\"></a-asset-item>\n+    <a-asset-item id=\"Oculus-CV1-mtl\" src=\"cv1_FF.mtl\"></a-asset-item>\n+    <a-asset-item id=\"Oculus-CV1-collada\" src=\"cv1_FF.dae\"></a-asset-item>\n+    </a-assets>\n+\n+<!--Sky color can be adjusted-->\n+    <a-sky color=\"#5CAAEB\"></a-sky>\n+\n+<!--Camera has WASD controls by default. In desktop (non VR) mode, click and drag to look around.-->\n+    <a-camera position=\"0, 1.8, 5\"></a-camera>\n+\n+<!--Here are the .obj and .dae models.-->\n+      <a-entity obj-model=\"obj: #Oculus-CV1-obj; mtl: #Oculus-CV1-mtl\" position=\"-5 0 -5\"></a-entity>\n+      <a-entity collada-model=\"#Oculus-CV1-collada\" position=\"5 0 -5\"></a-entity>\n+\n+    </a-scene>\n+  </body>\n+</html>\n+'''\n+\n+## Get npm (if you don’t have it already)\n+npm provides an easy way to install packages from the command line, using the Node.js Javascript runtime. \n+If you are on Windows or Mac, installing the latest version of Node will also install npm on your machine.\n+\n+After installing Node, check that it’s installed properly and check the version of Node and npm. Open command prompt and type:\n+\n+'''\n+node -v \n+nmp -v\n+'''\n+\n+Each of these commands should print a version number. \n+\n+## Get http-server\n+You can use any local dev server you are comfortable with. Here, I chose http-server, because it’s simple to install with npm, and easy to use.\n+To install the server globally, simply enter this on the command line:\n+npm install http-server -g\n+\n+To start the server and open a browser showing your web page:\n+http-server [full/path/to/index.html] -o\n+\n+There are other handy options for the server, specified on https://www.npmjs.com/package/http-server\n+\n+Make a directory to keep your blend file and exports","path":"creating/export-blender-to-aframe/index.md","position":106,"original_position":106,"commit_id":"fa7a44a5619bbcf64ae26e240426376e1ac796ce","original_commit_id":"fa7a44a5619bbcf64ae26e240426376e1ac796ce","user":{"login":"cvan","id":203725,"avatar_url":"https://avatars.githubusercontent.com/u/203725?v=3","gravatar_id":"","url":"https://api.github.com/users/cvan","html_url":"https://github.com/cvan","followers_url":"https://api.github.com/users/cvan/followers","following_url":"https://api.github.com/users/cvan/following{/other_user}","gists_url":"https://api.github.com/users/cvan/gists{/gist_id}","starred_url":"https://api.github.com/users/cvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvan/subscriptions","organizations_url":"https://api.github.com/users/cvan/orgs","repos_url":"https://api.github.com/users/cvan/repos","events_url":"https://api.github.com/users/cvan/events{/privacy}","received_events_url":"https://api.github.com/users/cvan/received_events","type":"User","site_admin":false},"body":"blend -> `.blend` (with backticks)","created_at":"2016-11-15T12:06:57Z","updated_at":"2016-11-15T12:06:57Z","html_url":"https://github.com/WebVRRocks/webvrrocks/pull/77#discussion_r88003014","pull_request_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/comments/88003014"},"html":{"href":"https://github.com/WebVRRocks/webvrrocks/pull/77#discussion_r88003014"},"pull_request":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77","id":93730640,"html_url":"https://github.com/WebVRRocks/webvrrocks/pull/77","diff_url":"https://github.com/WebVRRocks/webvrrocks/pull/77.diff","patch_url":"https://github.com/WebVRRocks/webvrrocks/pull/77.patch","issue_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/77","number":77,"state":"open","locked":false,"title":"5 Min SketchFab to A-Frame Guide (draft)","user":{"login":"321C4","id":8229343,"avatar_url":"https://avatars.githubusercontent.com/u/8229343?v=3","gravatar_id":"","url":"https://api.github.com/users/321C4","html_url":"https://github.com/321C4","followers_url":"https://api.github.com/users/321C4/followers","following_url":"https://api.github.com/users/321C4/following{/other_user}","gists_url":"https://api.github.com/users/321C4/gists{/gist_id}","starred_url":"https://api.github.com/users/321C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/321C4/subscriptions","organizations_url":"https://api.github.com/users/321C4/orgs","repos_url":"https://api.github.com/users/321C4/repos","events_url":"https://api.github.com/users/321C4/events{/privacy}","received_events_url":"https://api.github.com/users/321C4/received_events","type":"User","site_admin":false},"body":"Hey guys,\r\nThis article is done, except paths to image files need tweaking..","created_at":"2016-11-15T09:40:36Z","updated_at":"2016-11-15T12:23:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e37b624d70d711f27efa44787869096e1d3cb426","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77/commits","review_comments_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77/comments","review_comment_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/77/comments","statuses_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/statuses/fa7a44a5619bbcf64ae26e240426376e1ac796ce","head":{"label":"321C4:master","ref":"master","sha":"fa7a44a5619bbcf64ae26e240426376e1ac796ce","user":{"login":"321C4","id":8229343,"avatar_url":"https://avatars.githubusercontent.com/u/8229343?v=3","gravatar_id":"","url":"https://api.github.com/users/321C4","html_url":"https://github.com/321C4","followers_url":"https://api.github.com/users/321C4/followers","following_url":"https://api.github.com/users/321C4/following{/other_user}","gists_url":"https://api.github.com/users/321C4/gists{/gist_id}","starred_url":"https://api.github.com/users/321C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/321C4/subscriptions","organizations_url":"https://api.github.com/users/321C4/orgs","repos_url":"https://api.github.com/users/321C4/repos","events_url":"https://api.github.com/users/321C4/events{/privacy}","received_events_url":"https://api.github.com/users/321C4/received_events","type":"User","site_admin":false},"repo":{"id":73775204,"name":"webvrrocks","full_name":"321C4/webvrrocks","owner":{"login":"321C4","id":8229343,"avatar_url":"https://avatars.githubusercontent.com/u/8229343?v=3","gravatar_id":"","url":"https://api.github.com/users/321C4","html_url":"https://github.com/321C4","followers_url":"https://api.github.com/users/321C4/followers","following_url":"https://api.github.com/users/321C4/following{/other_user}","gists_url":"https://api.github.com/users/321C4/gists{/gist_id}","starred_url":"https://api.github.com/users/321C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/321C4/subscriptions","organizations_url":"https://api.github.com/users/321C4/orgs","repos_url":"https://api.github.com/users/321C4/repos","events_url":"https://api.github.com/users/321C4/events{/privacy}","received_events_url":"https://api.github.com/users/321C4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/321C4/webvrrocks","description":"WebVR Rocks: Your one-stop resource for everything about WebVR.","fork":true,"url":"https://api.github.com/repos/321C4/webvrrocks","forks_url":"https://api.github.com/repos/321C4/webvrrocks/forks","keys_url":"https://api.github.com/repos/321C4/webvrrocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/321C4/webvrrocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/321C4/webvrrocks/teams","hooks_url":"https://api.github.com/repos/321C4/webvrrocks/hooks","issue_events_url":"https://api.github.com/repos/321C4/webvrrocks/issues/events{/number}","events_url":"https://api.github.com/repos/321C4/webvrrocks/events","assignees_url":"https://api.github.com/repos/321C4/webvrrocks/assignees{/user}","branches_url":"https://api.github.com/repos/321C4/webvrrocks/branches{/branch}","tags_url":"https://api.github.com/repos/321C4/webvrrocks/tags","blobs_url":"https://api.github.com/repos/321C4/webvrrocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/321C4/webvrrocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/321C4/webvrrocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/321C4/webvrrocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/321C4/webvrrocks/statuses/{sha}","languages_url":"https://api.github.com/repos/321C4/webvrrocks/languages","stargazers_url":"https://api.github.com/repos/321C4/webvrrocks/stargazers","contributors_url":"https://api.github.com/repos/321C4/webvrrocks/contributors","subscribers_url":"https://api.github.com/repos/321C4/webvrrocks/subscribers","subscription_url":"https://api.github.com/repos/321C4/webvrrocks/subscription","commits_url":"https://api.github.com/repos/321C4/webvrrocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/321C4/webvrrocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/321C4/webvrrocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/321C4/webvrrocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/321C4/webvrrocks/contents/{+path}","compare_url":"https://api.github.com/repos/321C4/webvrrocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/321C4/webvrrocks/merges","archive_url":"https://api.github.com/repos/321C4/webvrrocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/321C4/webvrrocks/downloads","issues_url":"https://api.github.com/repos/321C4/webvrrocks/issues{/number}","pulls_url":"https://api.github.com/repos/321C4/webvrrocks/pulls{/number}","milestones_url":"https://api.github.com/repos/321C4/webvrrocks/milestones{/number}","notifications_url":"https://api.github.com/repos/321C4/webvrrocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/321C4/webvrrocks/labels{/name}","releases_url":"https://api.github.com/repos/321C4/webvrrocks/releases{/id}","deployments_url":"https://api.github.com/repos/321C4/webvrrocks/deployments","created_at":"2016-11-15T04:10:32Z","updated_at":"2016-11-15T04:10:33Z","pushed_at":"2016-11-15T08:20:49Z","git_url":"git://github.com/321C4/webvrrocks.git","ssh_url":"git@github.com:321C4/webvrrocks.git","clone_url":"https://github.com/321C4/webvrrocks.git","svn_url":"https://github.com/321C4/webvrrocks","homepage":"https://webvr.rocks/","size":19137,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WebVRRocks:master","ref":"master","sha":"a3642157c8e95bbe6ace8d9a246769193051ff0a","user":{"login":"WebVRRocks","id":23108671,"avatar_url":"https://avatars.githubusercontent.com/u/23108671?v=3","gravatar_id":"","url":"https://api.github.com/users/WebVRRocks","html_url":"https://github.com/WebVRRocks","followers_url":"https://api.github.com/users/WebVRRocks/followers","following_url":"https://api.github.com/users/WebVRRocks/following{/other_user}","gists_url":"https://api.github.com/users/WebVRRocks/gists{/gist_id}","starred_url":"https://api.github.com/users/WebVRRocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebVRRocks/subscriptions","organizations_url":"https://api.github.com/users/WebVRRocks/orgs","repos_url":"https://api.github.com/users/WebVRRocks/repos","events_url":"https://api.github.com/users/WebVRRocks/events{/privacy}","received_events_url":"https://api.github.com/users/WebVRRocks/received_events","type":"Organization","site_admin":false},"repo":{"id":72847037,"name":"webvrrocks","full_name":"WebVRRocks/webvrrocks","owner":{"login":"WebVRRocks","id":23108671,"avatar_url":"https://avatars.githubusercontent.com/u/23108671?v=3","gravatar_id":"","url":"https://api.github.com/users/WebVRRocks","html_url":"https://github.com/WebVRRocks","followers_url":"https://api.github.com/users/WebVRRocks/followers","following_url":"https://api.github.com/users/WebVRRocks/following{/other_user}","gists_url":"https://api.github.com/users/WebVRRocks/gists{/gist_id}","starred_url":"https://api.github.com/users/WebVRRocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebVRRocks/subscriptions","organizations_url":"https://api.github.com/users/WebVRRocks/orgs","repos_url":"https://api.github.com/users/WebVRRocks/repos","events_url":"https://api.github.com/users/WebVRRocks/events{/privacy}","received_events_url":"https://api.github.com/users/WebVRRocks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WebVRRocks/webvrrocks","description":"WebVR Rocks: Your one-stop resource for everything about WebVR.","fork":false,"url":"https://api.github.com/repos/WebVRRocks/webvrrocks","forks_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/forks","keys_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/teams","hooks_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/hooks","issue_events_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/events{/number}","events_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/events","assignees_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/assignees{/user}","branches_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/branches{/branch}","tags_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/tags","blobs_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/statuses/{sha}","languages_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/languages","stargazers_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/stargazers","contributors_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/contributors","subscribers_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/subscribers","subscription_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/subscription","commits_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/contents/{+path}","compare_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/merges","archive_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/downloads","issues_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues{/number}","pulls_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls{/number}","milestones_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/milestones{/number}","notifications_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/labels{/name}","releases_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/releases{/id}","deployments_url":"https://api.github.com/repos/WebVRRocks/webvrrocks/deployments","created_at":"2016-11-04T12:46:10Z","updated_at":"2016-11-08T12:23:40Z","pushed_at":"2016-11-15T11:02:34Z","git_url":"git://github.com/WebVRRocks/webvrrocks.git","ssh_url":"git@github.com:WebVRRocks/webvrrocks.git","clone_url":"https://github.com/WebVRRocks/webvrrocks.git","svn_url":"https://github.com/WebVRRocks/webvrrocks","homepage":"https://webvr.rocks/","size":19151,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":58,"forks":3,"open_issues":58,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77"},"html":{"href":"https://github.com/WebVRRocks/webvrrocks/pull/77"},"issue":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/77"},"comments":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/WebVRRocks/webvrrocks/statuses/fa7a44a5619bbcf64ae26e240426376e1ac796ce"}}}}
{"actor":{"display_login":"cvan"}}