<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexandra Etienne on Medium]]></title>
        <description><![CDATA[Stories by Alexandra Etienne on Medium]]></description>
        <link>https://medium.com/@AndraConnect?source=rss-c04bc48628bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8b2JVan3q4Jra_z0xNMPew.jpeg</url>
            <title>Stories by Alexandra Etienne on Medium</title>
            <link>https://medium.com/@AndraConnect?source=rss-c04bc48628bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 08:36:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AndraConnect/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[WebAR Playground: AR in a Few Clicks]]></title>
            <link>https://medium.com/arjs/webar-playground-ar-in-a-few-clicks-67a08cfb1534?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/67a08cfb1534</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[webar]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ar]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 14:45:17 GMT</pubDate>
            <atom:updated>2017-07-19T17:42:49.179Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Easiest Way To Create &amp; Share Augmented Reality on the Web</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJ_G3Nuu5Dn4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJ_G3Nuu5Dn4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJ_G3Nuu5Dn4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/79e2a830ee931bebf6cc9efce7b80f57/href">https://medium.com/media/79e2a830ee931bebf6cc9efce7b80f57/href</a></iframe><h3>The Idea Behind WebAR Playground</h3><p><a href="https://webxr.io/webar-playground/">WebAR Playground</a> is a simple, easy-to-use app, designed for those who aren’t experienced programmers or AR devs, but still want to enjoy the tech and create their own experiences.</p><p>We wanted to provide an easy way to create AR content that could be used by everyone anywhere. You don’t need to understand 3d or programming to use it!</p><p>We have this crazy idea that anyone can do AR! So we decided to create a simple application for you to play around, and experiment, with WebAR. In this blogpost you will see our results. We encourage you to try it for yourselves.</p><h3>Creating and Sharing AR Content on The Web</h3><h3>Jerome Etienne on Twitter</h3><p>Much better looking models in webar-playground - recorded on my phone. #AR 😃 https://t.co/spK8FBIYFd</p><p>You can easily create an AR scene with WebAR Playground in just a few clicks. When you launch the app, you will see there are various 3d objects for you to choose from (predefined content examples — some of them we dowloaded from <a href="https://sketchfab.com/">SkecthFab</a>) You can move the objects around the scene, rotate them, change their size…etc. Later in this post, we will explain how to use the app step by step.</p><p>One key part of WebAR Playground is the <strong>URL shareability</strong>. Once you have created your scene you will be able to export your content and show it to the world. By clicking on the “Export URL” button, you get a shareable link that you can copy. Whoever clicks on this link will be able to access your AR scene, see what you have created, and even edit on top of it.</p><p>This shareability is what makes WebAR Playground special. It is a web solution with an important advantage: Enabling you to share your AR content anywhere on the web (just by clicking on a url!). It’s a brand new way to distribute augmented reality on the Internet! Pretty cool right?</p><h3>How To Use WebAR Playground?</h3><h4><strong>The Complete UI</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b_mgzGy-hmMlf0NnkS899w.png" /><figcaption>WebAR Playground UI</figcaption></figure><h4>Explaining the UI One Menu At a Time</h4><ol><li><strong>Create Object Menu:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*Ob3VHLSkIGDlKZNME4vClA.png" /><figcaption>Create Object UI</figcaption></figure><p>The “Create Object” menu allows you to add an object to you scene. On the bottom left sidebar you will see a list of categories with different 3d elements e.g minecraft characters, gltf models, geometric shapes, magic windows (portals) and holograms. You can click on any of these. Then you will go into a list of more detailed options to choose from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*UiSFrqTDQKg6r4l_CIAT9w.png" /><figcaption>Create Object UI</figcaption></figure><p>As you see on the screenshot above, you can add a Minecraft “Batman”, “Superman” or “Mario”. They will appear on top of your AR markers. You also have a “Back” button to come back to the previous level of menu.</p><p>The 3d object you choose will be added to your scene. And voilà you have created some AR in just a few clicks!</p><p><strong>2. Area Menu</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*ZSpoYLVrDkqkPKMX8mniuQ.png" /><figcaption>Area UI</figcaption></figure><p>The “Area” menu is located to the right of the “Create Object” menu. It handles all the area learning for the markers. The list has something very interesting called the “Marker Helpers” checkbox. This provides a visual feedback of what AR.js is seeing on the screen. For example, it can help you determine if the lighting on the markers is okay and not interfering with the tracking. It is useful to know if you have learned the proper positions.</p><p>There is also a “Reset Area” button which resets all the area to the default Hiro single marker. Finally, there is “Learn Area” which takes you to the <a href="https://medium.com/arjs/area-learning-with-multi-markers-in-ar-js-1ff03a2f9fbe">area learning UI.</a></p><p><strong>3. Options Menu</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*fOKMiPA6GXn2LXPboal3fw.png" /><figcaption>Options UI</figcaption></figure><p>Right next to the “Area” menu you have the “Options” menu. It contains various elements like “Toggle Fullscreen” (self-explanatory). Another element is “Reset AR” to delete all the AR content that you have previously added on your scene, and come back to the basic rotating cube example.</p><p>Most importantly, there is “Export Share URL” and sharing on social networks (Twitter, Facebook). One essential point to WebAR Playground is that it allows you, not only to create, but also to easily share AR content on the Internet!</p><p><strong>4. Current Object Menu</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*E7uqoDh0J_ZwK0EXJTkxvA.png" /><figcaption>Current Objects UI</figcaption></figure><p>Last but not least is the “Current Objects” menu. This is the list of all the objects that you have created on your scene. In this case, we have added 3 Minecraft characters (Batman, Superman and Mario). You can select them, and you will see a feedback highlighting the one that you selected on the screen. You can also delete them with the little x on the side.</p><h4>Position, Rotation and Scale</h4><ol><li><strong>Positioning the object</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ifW5R10WCburL_PLshVuVQ.gif" /></figure><p>Once you have chosen your 3d object in “Create Object” menu, you need to add it to you scene. To position it on your scene you just click where you want it to be displayed, and it will appear — just like Minecraft Batman in the example above.</p><p><strong>2. Scaling the object</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*aFri5CtQLuDDudXvdrXjKg.gif" /></figure><p>You can scale the object by holding the left click and dragging your mouse up (to make the object bigger) and down (to make the object smaller)</p><p><strong>3. Rotating the object</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*echJuVAkwHT9Dg-DiQa2Iw.gif" /></figure><p>You can rotate the object by holding the left click and dragging your mouse left or right. Move your mouse depending on which direction you want the object to rotate.</p><p>And there you have it! A simple way to edit your 3d objects and create an AR scene!</p><p>You can also take a look at this detailed video explaining how get started with WebAR Playground:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNyZ_dAlNBOI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNyZ_dAlNBOI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNyZ_dAlNBOI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b775b31db9203987606b3cc7c398fa2a/href">https://medium.com/media/b775b31db9203987606b3cc7c398fa2a/href</a></iframe><h3>What’s Next?</h3><p>We’ve seen how easy it is to build your own AR content in just a few clicks. Now what? Well, WebAR Playground was made for experimentations. So go ahead, build something awesome and share it with everybody! Don’t let your doubts stop you, you can be as creative as anyone!</p><p>WebAR Playground is a fast-moving project. It’s constantly evolving! Don’t be surprise if some things change in the future. We are improving it every day. For example, we are working on building AR.js on Tango through WebAR Playground (meaning without markers!)</p><h3>Jerome Etienne on Twitter</h3><p>More of AR.js on tango! All built thru webar-playground #AR 😃 https://t.co/gbjUbbAEAa</p><p>If you liked this post, you might want to subscribe to our <a href="https://webxr.io/newsletter/">newsletter</a> and check out this<a href="https://webxr.io/augmented-website/"> augmented website</a> project, also part of <a href="https://webxr.io/">webxr.io</a></p><p>Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67a08cfb1534" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arjs/webar-playground-ar-in-a-few-clicks-67a08cfb1534">WebAR Playground: AR in a Few Clicks</a> was originally published in <a href="https://medium.com/arjs">ARjs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Area Learning with Multi-Markers in AR.js]]></title>
            <link>https://medium.com/arjs/area-learning-with-multi-markers-in-ar-js-1ff03a2f9fbe?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ff03a2f9fbe</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[webar]]></category>
            <category><![CDATA[ar]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 13:59:47 GMT</pubDate>
            <atom:updated>2017-06-26T16:16:32.808Z</atom:updated>
            <content:encoded><![CDATA[<h4>For a Larger &amp; More Stable Augmented Reality</h4><p>Multi-markers are an interesting way of displaying Augmented Reality. They increase tracking performance and enhance the stability of the 3d. There are many advantages of using multi-markers. In this post, we will go through the basic concept, and a step by step to try it yourself. It has a sweet workflow.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FibzcbBLzDZU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DibzcbBLzDZU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FibzcbBLzDZU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d9a593604cfc916706c0c841db5720b/href">https://medium.com/media/7d9a593604cfc916706c0c841db5720b/href</a></iframe><h3>Multi-Markers are Great!</h3><p>The term multi-marker means using more than one marker at a time. Before, we used only one square marker e.g Hiro marker. This is nice but we can go much further. With multi-markers, we have multiple markers acting as one larger marker.</p><blockquote><em>So a multi-marker is basically a group of markers acting as one.</em></blockquote><p>They have several key advantages which make your AR larger and more stable. They also provide a more robust detection. We have designed a UX with a sweet workflow to learn new areas of the markers.</p><h4>Advantages of Multi-Markers</h4><p>Multi-markers have useful features that provide significant advantages when developing AR.</p><p><strong>More Stable: </strong>AR is less shaky and has a higher quality.</p><p><strong>More Robust: </strong>The 3d displayed in AR won’t disappear. It will remain visible even if you move far away from the multi-marker.</p><p>So you end with much larger augmented reality, like in this video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPL2oSKUSmuoTECUCvHDvifRhztkOYduQsq&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dt927SlmegWU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ft927SlmegWU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/59030585878c45780481747f93f483e7/href">https://medium.com/media/59030585878c45780481747f93f483e7/href</a></iframe><p>Another <strong>important advantage</strong> is that since all the markers act as one, even if only one marker is visible, the multi-marker position will still be tracked properly! Pretty cool, right?</p><h3>Multi-Marker Sweet Workflow</h3><p>There are two modes in this workflow: <strong>the player and the learner</strong>.<strong> </strong><br>The player is the one using the multi-marker to display an augmented reality experience on top of it. Obviously before this, you need to learn the area where all your markers are placed.</p><p>Let’s see how its done, step by step.</p><h4>Step 1: Launching The Learner Mode</h4><p>Learning the area is very simple. You start by launching the learner mode. To do this, you click the green button that you see on the bottom right corner of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdE-c4OQNIJpRVuqHHLQtg.png" /><figcaption>Step 1: Launch the Learner Mode by clicking the green button</figcaption></figure><h4>Step 2: Learning The Area</h4><p>Then you move the camera of your device around the area to start learning. The goal here is to detect the exact position of the markers and the distance between them.</p><p>You will see a UI in the bottom left corner of the screen with a list of the markers being learned. When a green check appears next to each of them, that means the learning process is done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_s21p2gfM8zaike_gaPV4w.png" /><figcaption>Learner UI: a green check next to each marker means the learning process is done!</figcaption></figure><p>Note: It is very important that you don’t move the markers once you have learned them, their position is considered stable, and must remain like this.</p><h4>Step 3: Displaying your AR content</h4><p>Once you have finished learning the markers, you need to return to player mode. To do this, you simply click again on the green button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZkG3s7trpu2ikXmLaZpQg.png" /><figcaption>Step 3: See AR displayed on Player Mode</figcaption></figure><p>Now you will be able to display the 3d on top of the multi-marker!</p><p>Here is a short video to summarize all the steps and show you the result:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlIHcnwOVKng%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlIHcnwOVKng&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlIHcnwOVKng%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/32bee63c2062dd1ef451e95dceb2594b/href">https://medium.com/media/32bee63c2062dd1ef451e95dceb2594b/href</a></iframe><p>I hope you guys enjoyed learning about multi-markers. Now go out there and create amazing AR experiences yourselves! Don’t forget to share them with us via Twitter, and thumbs up if you liked this post ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ff03a2f9fbe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arjs/area-learning-with-multi-markers-in-ar-js-1ff03a2f9fbe">Area Learning with Multi-Markers in AR.js</a> was originally published in <a href="https://medium.com/arjs">ARjs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Create your Own Marker ?]]></title>
            <link>https://medium.com/arjs/how-to-create-your-own-marker-44becbec1105?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/44becbec1105</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 14:16:38 GMT</pubDate>
            <atom:updated>2017-07-11T09:02:12.532Z</atom:updated>
            <content:encoded><![CDATA[<h4>3 easy steps to create a marker in 5min</h4><p>Most of <a href="https://github.com/jeromeetienne/ar.js">AR.js</a> demos use the <a href="https://www.google.ie/search?q=hiro+marker">Hiro marker.</a> It is nice but people often want to personalise the marker. For example, they may want to use their avatar or their logo. They want to make it more suitable for their own usage. So I wrote a tool to create new markers in 3 easy steps.</p><ol><li>Upload your image — the one that appears inside the black boundary.</li><li>Download the trained marker — and use it in your AR experience.</li><li>Download the marker image — to print it.</li></ol><h4><a href="https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html">Click here to start training a marker</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E979CVQKnNsc7MigwadQ3A.png" /><figcaption>Screenshot of AR.js marker training</figcaption></figure><p>It is very simple! Let’s get started.</p><h3>Step 1 — Upload Your Image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*KsjzhKH1bu4ph__y_9o60A.png" /><figcaption>Upload your own image</figcaption></figure><p>First you upload an inner image. This is the image that you want to appear inside the black square of the marker.</p><h3>Step 2— Download the Trained Marker</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*zlvobObiJVYhTGdKU6T2qQ.png" /><figcaption>Click here to download the trained marker</figcaption></figure><p>Then you download the trained marker by clicking on the download button. You will need to add it to your code, thus it is aware of this new marker.</p><h3>Step 3— Get The Marker Image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*GIthG_lDcfHPXzecl6QxDg.png" /><figcaption>Getting the marker image</figcaption></figure><p>Finally, you can either right click the marker image and “<em>save image as” </em>to<em> </em>your computer, or you can export it to PDF and print it on paper. Your call ;)</p><h3>Step 4— Include it in your Code</h3><p>This file contains the encoded marker that you should reuse in your code. You specify you want a pattern marker and you provide the url to your own marker. So just replace this in your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*463euZDn3IJOSigABggmMg.png" /></figure><h3>The End 😄</h3><p>That was easy right?</p><p>For further details on what are the characteristics of a good marker, read more <a href="https://artoolkit.org/documentation/doku.php?id=3_Marker_Training:marker_training">here</a>.</p><p>Thanks for reading, and if you like this post, don’t forget to share 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44becbec1105" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arjs/how-to-create-your-own-marker-44becbec1105">How To Create your Own Marker ?</a> was originally published in <a href="https://medium.com/arjs">ARjs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning A-Frame: Adding Image Textures]]></title>
            <link>https://medium.com/w3bvr/learning-a-frame-adding-image-textures-5dbb7c41288?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dbb7c41288</guid>
            <category><![CDATA[texture]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[a-frame]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Sun, 16 Apr 2017 18:38:13 GMT</pubDate>
            <atom:updated>2017-06-17T09:52:05.562Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tutorial featuring heart-pumping Earth and TweenJS.</h4><p>Textures are the way we dress the objects in our scene, their skin layer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F11yFr5HBAOECSQ%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F11yFr5HBAOECSQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F11yFr5HBAOECSQ%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="480" height="255" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b4629e4d5d84ecbee2d3c327c396dc9/href">https://medium.com/media/6b4629e4d5d84ecbee2d3c327c396dc9/href</a></iframe><p>Applying an image texture is very simple. We can apply it to every entity, no matter their form.</p><h3>Getting Started</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*0w7FcCAZdPCZXI3K8sW6JA.png" /><figcaption><a href="https://aframe.io/docs/0.5.0/guides/#applying-an-image-texture">A-Frame example</a></figcaption></figure><p>Let’s say we have &lt;a-box&gt; entity inside our scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jlRdTThY8f7yIZSfiTALjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mgv7yWsZx7lkfabuqI_DZw.png" /></figure><p>We can apply the texture to our box by copying the <a href="https://i.imgur.com/mYmmbrp.jpg"><em>url</em></a><em> </em>of the image we want to use, and then pasting it as a value of the <strong>src</strong> (source) attribute. Just like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7zkfHEC01X4AlCev6aC8Rg.png" /></figure><p>Also, I suggest that you remove the <strong>color</strong> of your entity before pasting the image texture — that way the texture is not modified by the red of the box. Remember that the default color for an entity is white.</p><p>After applying the image texture, you get this result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KjKc_skhTZwOU0fAs6q6pg.png" /></figure><p>If you don’t like that particular texture, there are much more assets that you can try. You can explore a great collection of them <a href="https://github.com/aframevr/sample-assets/tree/master/assets/images"><em>here.</em></a></p><p>Some examples of other image textures on our box:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FOvrn4W63jo71m%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FOvrn4W63jo71m%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FOvrn4W63jo71m%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="480" height="254" frameborder="0" scrolling="no"><a href="https://medium.com/media/e66b7fac861aa5a34fc0a421f2f84a8e/href">https://medium.com/media/e66b7fac861aa5a34fc0a421f2f84a8e/href</a></iframe><p>That’s pretty cool if you ask me!</p><h3>Creating Earth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlLoXKAJcg7pqhjucMaksQ.png" /></figure><p>If you want to recreate planet <a href="http://codepen.io/AndraConnect/pen/vxzMjv?editors=1000"><em>Earth</em></a>, you will need the <a href="https://raw.githubusercontent.com/aframevr/sample-assets/master/assets/images/space/earth_atmos_4096.jpg"><em>texture</em></a> above, (also part of the collection of a-frame sample assets.)</p><p>Then you create &lt;a-sphere&gt; entity and paste the url of the image texture in the <strong>src </strong>attribute just like before. Easy right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ws2VL4KoGsJLcdAhoycRQQ.png" /></figure><p>As you see, we’ve also added a <a href="https://aframe.io/docs/0.5.0/primitives/a-sphere.html#attributes_segments_height"><strong><em>segments-height</em></strong></a><strong> </strong>attribute to our sphere. This is used to smooth out the edges of our Earth, to make the geometry rounder and less “pointy”. We can play around with the value until it’s perfect (the lower the value, the “pointier” the sphere)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*e0w55a5fGF5MKdUzYLc0sA.png" /></figure><p>That’s it! You now have a full, round, beautiful planet Earth that you can add to your scene, animate and even get in VR! And when combined with <a href="https://medium.com/@AndraConnect/learning-a-frame-how-to-do-animations-2aac1ae461da"><em>animations</em></a> and a skybox background, it has a pretty cool effect:</p><h3>Alexandra Etienne on Twitter</h3><p>NEW How to add a Skybox to your @aframevr scene on @CodePen Tutorial ft. heart-pumping Earth &amp;amp; #tweenjs https://t.co/XkHdju3pWV #TechTuesday https://t.co/Tpq4rG9qBD</p><p>If you guys liked this post, you can also check out my full <a href="https://www.youtube.com/watch?v=klnwT3vGCPw&amp;t=1s"><em>video tutorial.</em></a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FklnwT3vGCPw%3Fstart%3D1%26feature%3Doembed%26start%3D1&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DklnwT3vGCPw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FklnwT3vGCPw%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8e77adf366c14cb33f78c580848007e/href">https://medium.com/media/f8e77adf366c14cb33f78c580848007e/href</a></iframe><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dbb7c41288" width="1" height="1" alt=""><hr><p><a href="https://medium.com/w3bvr/learning-a-frame-adding-image-textures-5dbb7c41288">Learning A-Frame: Adding Image Textures</a> was originally published in <a href="https://medium.com/w3bvr">WebVR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning A-Frame: How to do Animations]]></title>
            <link>https://blog.prototypr.io/learning-a-frame-how-to-do-animations-2aac1ae461da?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aac1ae461da</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[a-frame]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Wed, 12 Apr 2017 13:47:48 GMT</pubDate>
            <atom:updated>2017-04-14T20:47:20.226Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to this <a href="https://aframe.io/"><em>A-Frame</em></a> tutorial! We are going to take a look at the different kinds of animations that we can do with this awesome framework, using an <a href="http://codepen.io/AndraConnect/pen/YNogdG?editors=1000"><em>example on codepen.io</em></a><em>.</em></p><p>Animations are a key part of all great 3d creations out there. They attract our eye and bring our scene to life.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUPGcAh0KrdAGS3Ure%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxUPGcAh0KrdAGS3Ure%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxUPGcAh0KrdAGS3Ure%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="480" height="255" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c8b6f6cb77719606c7e279e12d333b1/href">https://medium.com/media/7c8b6f6cb77719606c7e279e12d333b1/href</a></iframe><p>We can very easily create <a href="https://aframe.io/docs/0.5.0/core/animations.html#sidebar"><em>animations in A-Frame</em></a> placing the &lt;a-animation&gt; element inside the object/entity we want to animate. We can then decide which properties we want to animate. With this in mind, we can make our entity move the way we want, modifying attributes like its position, rotation, scale and even the color.</p><p>Let’s take a look at each one:</p><h3>Position Animation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*XyeWbbNJ06mEnkkbtgUozQ.png" /><figcaption>Position animation</figcaption></figure><p>So we have a scene, with a box entity. Attaching the animation as a child of our box, we label the attribute “position” — To learn more about all the attributes that you can use with animations see <a href="https://aframe.io/docs/0.5.0/core/animations.html#attributes"><em>here</em></a><em>. </em>Then we can change variables like:</p><ul><li><strong>dur </strong>(duration in milliseconds of the animation) in this case 3000 — the higher the value the slower it will move.</li><li><strong>from</strong> (where the animation starts) in this case a value of -5 in the x axis</li><li><strong>to</strong> (where the animation ends) in this case 5 in the x axis</li><li><strong>repeat</strong> (how many times do you want your animation to, well, repeat) in this case its “indefinite”, so it will go on forever.</li></ul><p>The rest of the code is just adding a light-yellow sky and adjusting the position of the camera.</p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*YEtlUkcc1WA843gE3CSqAg.gif" /></figure><h3>Rotation Animation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Uz0Elva6ui20oLUuAHm1DQ.png" /><figcaption>Rotation animation</figcaption></figure><p>So in this example, same thing, the animation is a child of the box entity. However, the attribute is labeled as “rotation”. The <strong>dur</strong> has the same value and the <strong>repeat</strong> is left as “indefinite”. No need to define a <strong>from</strong> attribute, since we want our box to rotate at 360° in the y axis, we just define the <strong>to</strong> attribute to that value.</p><p>We introduce the <strong>easing</strong> attribute, which is basically how you want the object to move/or what pattern do you want your animation to follow (we’ll see more on that later). In this case the easing is “linear”, which makes the animation constant in its movement.</p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7TEFb5KGufPk34CesZ4Vvw.gif" /></figure><h3>Color Animation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDHZKubJ-LMlb9S8iWz66w.png" /><figcaption>Changing the color animation</figcaption></figure><p>In this step, we are going to combine the two previous animations, and add some lines of code (see screenshot above) to change the color of our entity in sync with the other animations.</p><p>So we open another &lt;a-animation&gt; and modify its parameters, defining the <strong>attribute</strong> “material.color” and going <strong>from</strong> a blue <strong>to</strong> a red color. The <strong>dur</strong> and <strong>repeat</strong> keep the same values as before.</p><p>We will be able to see the transition of the color while our box is moving. So all 3 animations (position, rotation and color) are working together.</p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*GhUVwywWalRp3ED2jY1UOg.gif" /></figure><p>You can take a look at a <a href="https://www.youtube.com/watch?v=JDAdQV4YWRc&amp;list=PLUtkqA7NXVH7ctoJYhsh4xqJn3iWMpP30&amp;index=3"><em>video tutorial</em></a> I made of basic animations on a-frame, explaining this example step by step:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJDAdQV4YWRc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJDAdQV4YWRc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJDAdQV4YWRc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/147df5a4d89254724580dfebb344d7b4/href">https://medium.com/media/147df5a4d89254724580dfebb344d7b4/href</a></iframe><p>But wait, there’s something missing…</p><h3>Scaling Animation</h3><p>The “scale” animation is probably my favorite. We can make our entities bigger and smaller, and even create funky animations. In this next example, we are going to make our object pulsate or pump like a heart. This is a little bit more advanced than basic animations but I wanted to share the cool effect with you guys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TORT_k9M62nQd4XD4MaoNA.png" /></figure><p>So, as shown on the screenshot above, the <strong>attribute</strong> is “scale”, the <strong>dur</strong> is 1000 (so it will move faster than our the box from before). We will start <strong>from</strong> a value of 1 in the x,y,z axis and go <strong>to </strong>a value of 2. The <strong>repeat </strong>attribute is kept as “indefinite”.</p><p>Additionally, we are going to change the <strong>easing</strong> to “ease-in-out-circ” — this is one of the many <a href="https://aframe.io/docs/0.5.0/core/animations.html#easing"><em>easing functions</em></a> that you can play around with. You can also check out the visualisations of the different curves of easing patterns <a href="http://tweenjs.github.io/tween.js/examples/03_graphs.html"><em>here</em></a><em>. </em>The “ease-in-out-circ basically means that the animation will start slow, speed up in the middle, and then slow down at the end in a sort of circular/elliptic way.</p><p>We’ve also included the <strong>direction</strong> attribute, that defines which way to animate between the <strong>from</strong> and<strong><em> </em>to</strong> values. In this case, alternate-reverse means animating <em>“on odd-numbered cycles, from </em><em>from to </em><em>to and on even-numbered cycles, from </em><em>to to </em><em>from” </em>If you want to know more about the different values you can use for the direction attribute please go<em> </em><a href="https://aframe.io/docs/0.5.0/core/animations.html#direction"><em>here</em></a><em>.</em></p><p>Thanks to this we get that heart-pumping effect.</p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Y29ghZSxL5pHtNqvHwEIHQ.gif" /></figure><p>As you can see the object I’m animating here is Earth, which I created by just <a href="https://www.youtube.com/watch?v=klnwT3vGCPw&amp;list=PLUtkqA7NXVH7ctoJYhsh4xqJn3iWMpP30&amp;index=4"><em>adding a texture image</em></a> to a sphere<em>, </em>and the space behind is simple a <a href="https://www.youtube.com/watch?v=CaRgVJdHRVI&amp;index=6&amp;list=PLUtkqA7NXVH7ctoJYhsh4xqJn3iWMpP30"><em>skybox</em></a>. It is very simple to do, check out the links ;) You can make your own Earth with just a few lines of code and animate it anyway you want!</p><p>Thanks for reading guys. I hope you find this post useful. I suggest you get crazy trying out animations on a-frame!</p><p>Don’t hesitate to contact me anytime <a href="https://twitter.com/AndraConnect">@AndraConnect</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff51076%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Ff51076&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed6399974de6e1c6fa5f3851dd966fad/href">https://medium.com/media/ed6399974de6e1c6fa5f3851dd966fad/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aac1ae461da" width="1" height="1" alt=""><hr><p><a href="https://blog.prototypr.io/learning-a-frame-how-to-do-animations-2aac1ae461da">Learning A-Frame: How to do Animations</a> was originally published in <a href="https://blog.prototypr.io/">Prototypr</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning A-Frame: How To Build your First Scene in VR!]]></title>
            <link>https://medium.com/@AndraConnect/learning-a-frame-how-to-build-your-first-scene-in-vr-16afc6f4b114?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/16afc6f4b114</guid>
            <category><![CDATA[vr]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[a-frame]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Mon, 10 Apr 2017 12:26:51 GMT</pubDate>
            <atom:updated>2017-04-10T12:52:06.589Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXFv55TajSAg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXFv55TajSAg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXFv55TajSAg%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/93926e9a6dad16059140f3b5599cefc4/href">https://medium.com/media/93926e9a6dad16059140f3b5599cefc4/href</a></iframe><p>I started learning a-frame recently. <a href="https://aframe.io/"><em>A-Frame</em></a> is an amazingly-simple and easy-to-learn framework supported by Mozilla. It allows you to spike up your creativity and build virtual reality experiences. I wanted to share my experiences with you.</p><p>So, I decided to publish some <a href="https://www.youtube.com/watch?v=XFv55TajSAg&amp;index=1&amp;list=PLUtkqA7NXVH7ctoJYhsh4xqJn3iWMpP30"><em>video tutorials</em></a> about what I had learned, documenting my progress, step by step. I used <a href="http://codepen.io/"><em>codepen.io</em></a> as a platform to gather my demos. This is the first tutorial, a very basic a-frame VR scene.</p><h3>Getting Started</h3><p>Thankfully the a-frame <a href="https://aframe.io/docs/0.5.0/introduction/"><em>documentation</em></a> is very helpful. There are so many useful sections you can go check out for a more in-depth look. They also have a <a href="https://aframe.io/blog/"><em>blog</em></a> and you can reach them on slack.</p><p>First of all, in the Getting Started page, you scroll down to <a href="https://aframe.io/docs/0.5.0/introduction/getting-started.html#play-with-codepen"><em>Play with Codepen</em> </a>. There’s an example that you can edit directly, just by clicking on <a href="http://codepen.io/mozvr/pen/BjygdO"><em>Edit on Codepen</em></a><em> </em>on the top right<em> — </em>this will load the scene inside your codepen.io account (open one, it’s free and you’ll love it)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*q3_0SHqzaTl4psxBNFE3Sw.png" /></figure><p>There you have it! You have your very first a-frame HTML scene all ready to go. Let’s take a look at it in more detail…and then have fun with it.</p><p>Btw, I encourage you to spend some time familiarising yourself with the tools on <a href="http://codepen.io/"><em>codepen.io</em></a>, they are very user-friendly and it really makes coding easier.</p><h3>Describing the first scene</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*us6IBzdeqafqe_2jUPlevA.png" /><figcaption>First a-frame scene in codepen.io</figcaption></figure><p>The basic example that you see on the screenshot above has a total of 9 lines:</p><p>The first line, identified as script, is the JavaScript file which includes the code to do a-frame. This line needs to be present in all your a-frame scenes.</p><p>The other lines describe what is inside the scene itself, which includes a sphere, a box, a cylinder, a plane and a sky. You can modify these objects (also called <a href="https://aframe.io/docs/0.5.0/core/entity.html"><em>entities</em></a>) as you wish. For example, to move the objects around, you can change the values of the x, y, z axis inside the position and rotation attributes.</p><p>You can just as easily modify the values of the radius, the width, the height and the depth to make your objects bigger or smaller, larger or thiner..etc.</p><p>You can also change the color, playing around with the<em> </em><a href="http://htmlcolorcodes.com/"><em>HTML color codes</em></a><em>,</em> (used in the example above) or actually just writing the name of the color you want.</p><h3>Hello World!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yuK30ME9vnfzDTVP1uPrQ.png" /><figcaption>My first “creative” example</figcaption></figure><p>Once you understand the basic example then you can get crazy and build a more personal (in my case psychedelic) scene.</p><p>The screenshot above shows my<a href="http://codepen.io/AndraConnect/pen/ZLZLyg?editors=1010"><em> first easy-to-build “creative” example</em></a><em>.</em> Let’s take a look at the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwCApeZ0Og2etY1b0Udu6w.png" /></figure><p>As you can see, I added four different torus entities to the scene. I modified their radius and their color, leaving them in the same position, to make that circular rainbow-like effect.</p><p>For the pillars of my banner, I just modified two magenta cylinders making them taller and thinner. And to “support” my pillars I added a ground, which is basically a plane that covers the surface. Finally I changed the sky to a light-blue color.</p><h3>Adding Text</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4ebHoYfDbd_MpserCeKFQ.png" /></figure><p>Adding text is again, very simple to do with a-frame. The first line of the screenshot above is all your need: the <a href="https://aframe.io/docs/0.5.0/primitives/a-text.html#sidebar"><em>a-frame text component &lt;a-text&gt;</em></a><em>,</em> the value (whatever you want to write), the position (where you want to place it on the scene), the color (self-explanatory) and the width (how thick do you want the text to be).</p><p>To make it a banner, I just placed the text on top of a box entity, that I modified to fit between the two cylinder pillars.</p><h3>VR Mode</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WferQ13UTFpcG2ltmjk7g.png" /><figcaption>How to look at your scene in VR in just one click!</figcaption></figure><p>This is one of the coolest things about A-Frame. It IS a framework to create virtual reality experiences, so you can turn your scene into VR in just one click!</p><p>To see it through your phone, you just copy your codepen url and paste it on your mobile browser. Once the scene appears on the screen, you can interact with it —and when you click the button that resembles a pair of cardboard glasses at the bottom right, you will enter into VR mode. This is useful (and usable right away!) if you have devices like Google cardboard, Gear VR, devices that support daydream…etc.</p><h3>Alexandra Etienne on Twitter</h3><p>I&#39;m really getting into this #WebVR stuff! This is my @CodePen adventure of today + video for beginners like me: https://t.co/osK7EyGjbU #VR https://t.co/P4SMAMTAfD</p><p>There you have it guys, you have created your first a-frame VR scene on codepen.io, and it’s as easy as that!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FzcCGBRQshGdt6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Freaction-office-space-that-was-easy-zcCGBRQshGdt6&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FzcCGBRQshGdt6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="279" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a35fcd7c43f3c4c25d9c9ccf5e51519/href">https://medium.com/media/3a35fcd7c43f3c4c25d9c9ccf5e51519/href</a></iframe><p>I hope you liked this post and that you want to share it with the world. Also, don’t hesitate to contact me anytime on twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16afc6f4b114" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Augmented Reality in 10 Lines of HTML]]></title>
            <link>https://medium.com/arjs/augmented-reality-in-10-lines-of-html-4e193ea9fdbf?source=rss-c04bc48628bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e193ea9fdbf</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Alexandra Etienne]]></dc:creator>
            <pubDate>Mon, 03 Apr 2017 11:19:41 GMT</pubDate>
            <atom:updated>2017-04-10T18:58:40.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_KRoxGrxyVyByUuNi3DNQ.jpeg" /></figure><h4>AR.js with a-frame magic</h4><p>Do you want to do Augmented Reality on the web ? You can now do it in 10 lines of HTML! Seriously! Let me walk you thru the code, it’s crazy simple.</p><p>We <a href="https://github.com/jeromeetienne/ar.js">released AR.js</a> recently. You can experience efficient augmented reality for the web directly on your phone without installing any applications. But let’s go further and see how to produce your own augmented reality experience. The shortest example of AR.js is only 10lines of HTML thanks to the magic of <a href="https://aframe.io/">a-frame</a>. You can see it live on <a href="https://codepen.io/jeromeetienne/pen/mRqqzb">codepen</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMqCgYnkccggDzJmXw2Xbg.png" /><figcaption>AR.js example in 10 lines of HTML</figcaption></figure><p>Let’s break it down line by line.</p><h3>Including the Libraries</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JshGtmSGWRhg12IfXW7frw.png" /><figcaption>scripts to include</figcaption></figure><p>First, you include <a href="https://aframe.io/">a-frame</a>, an effort started by <a href="https://mozvr.com/">MozillaVR</a> to build VR experiences. A-frame contains <a href="https://threejs.org/">three.js</a>. Then you simply include AR.js for a-frame. AR.js will make the 3d displayed in AR run very fast on your phone, even if it’s a 2–3 year old phone!</p><h3>Defining the Body</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0H6cj24KYnsrh2A2DAP1GQ.png" /><figcaption>Usual html body — not much here</figcaption></figure><p>In this step, it’s all business as usual. You define the body, like you would in all HTML pages.</p><h3>Creating a 3d Scene</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8nfTiQYHV-9ZIQ10PTjqg.png" /><figcaption>Declare your scene, and specify you are using artoolkit</figcaption></figure><p>Next, we are going to create our a-frame scene. We also need to add the ARToolkit component. <a href="https://artoolkit.org/">ARToolKit</a> is an open-source library that we use to localize it through the phone camera.</p><h3><strong>Adding Simple Content</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kklM0ghsxkZNvCqsO1W2Bw.png" /><figcaption>Just a simple box</figcaption></figure><p>Once we have created the 3d scene, we can start adding objects to it. In this line, we add a simple box. We then modify its material to make it transparent. We also change its position so it displays on top of the AR marker.</p><h3>Adding the AR Camera</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GHcogjij1_DlOqZBu_9qA.png" /><figcaption>Define a camera controlled by marker position</figcaption></figure><p>In this last step, we are going to add a camera. We include the preset ‘hiro’ (as in <a href="https://jeromeetienne.github.io/AR.js/data/images/HIRO.jpg">Hiro marker</a>). Finally, we make it move as if it were your phone. Easy right?</p><p>Congratulations! You are done. You now have augmented reality, in only 10 lines of HTML, running fast on your phone and free of charge.</p><p>Check out this video version I made of the tutorial:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fv_Uj0C8sMi4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv_Uj0C8sMi4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fv_Uj0C8sMi4%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1f03081b25b005a541b4dc91baaf84a/href">https://medium.com/media/f1f03081b25b005a541b4dc91baaf84a/href</a></iframe><p>Thanks for reading, and if you like this post, don’t forget to share 😉</p><p>Also, please feel free to contact me anytime <a href="https://twitter.com/AndraConnect">@AndraConnect</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e193ea9fdbf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arjs/augmented-reality-in-10-lines-of-html-4e193ea9fdbf">Augmented Reality in 10 Lines of HTML</a> was originally published in <a href="https://medium.com/arjs">ARjs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>