<?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[Immersion FTW - Medium]]></title>
        <description><![CDATA[On virtual reality and related technologies - Medium]]></description>
        <link>https://medium.com/immersion-for-the-win?source=rss----aa23f526604---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Immersion FTW - Medium</title>
            <link>https://medium.com/immersion-for-the-win?source=rss----aa23f526604---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:30:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/immersion-for-the-win" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building Social VR apps in AltspaceVR with A-Frame]]></title>
            <link>https://medium.com/immersion-for-the-win/building-social-vr-apps-in-altspacevr-with-a-frame-81cb1bbc3ec4?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/81cb1bbc3ec4</guid>
            <category><![CDATA[webvr]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Fri, 15 Jul 2016 08:20:34 GMT</pubDate>
            <atom:updated>2017-08-27T18:32:46.850Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I’ve previously explained </em><a href="https://medium.com/immersion-for-the-win/hands-on-with-virtual-reality-using-a-frame-react-and-redux-bc66240834f7"><em>how to build interactive VR apps with A-Frame and React</em></a><em>. In this article, I show how to take a simple A-Frame example and bring it into AltspaceVR.</em></p><p>A lot ideas for virtual reality applications includes a social aspect where a group of people are brought together in a virtual space to collaborate in some way. As developers, it’s a fun challenge to build the entire infrastructure that enables such a “multiplayer experience”, but it’s a also a massive, time-consuming task. If your idea is, say, “planning poker in VR” or “creative briefs in VR”, it’s probably better to use existing infrastructure and focus on building a prototype that solves the business need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4YZwHOhvRBQIErwSiSciOg.png" /></figure><p>My favorite platform for social VR is <a href="http://altvr.com/">AltspaceVR</a>. It has plenty of competition, but I like Altspace because it works on all major platforms and its <a href="https://developer.altvr.com/">3rd party development infrastructure</a> is based on Javascript and browser rendering. If you can render 3d in the browser using WebGL and ThreeJS, it’s easy to get this content into Altspace. Most rooms in Altspace have a dedicated “hologram” area where you can bring up any compatible web page and get it rendered as a “3d hologram” in the client.</p><p>Even if you don’t have much experience with 3d in the browser, <a href="https://aframe.io/">Mozilla’s A-Frame library</a> makes it easy to build such applications for anyone with a bit of web development experience. We’ll use A-Frame’s <a href="https://aframe.io/examples/showcase/helloworld/">“Hello World” example</a> as a starting point. To follow along, head to the <a href="http://codepen.io/team/mozvr/pen/BjygdO?editors=100">example on Codepen</a>, and click the “Fork” button to make your own copy to play with.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmozvr%2Fembed%2Fpreview%2FBjygdO%3Fheight%3D600%26amp%3Bslug-hash%3DBjygdO%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fmozvr%2Fpen%2FBjygdO%3Feditors%3D100&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F358505.BjygdO.small.845f6a3e-acb4-412d-8601-42aa5f06d3ea.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/be515e54c1a67efb84b8c4145ed06bc7/href">https://medium.com/media/be515e54c1a67efb84b8c4145ed06bc7/href</a></iframe><p>The Altspace team has created an <a href="https://github.com/AltspaceVR/aframe-altspace-component">A-Frame component</a> that makes it easy to render A-Frame scenes inside an Altspace room. In your Codepen fork, open “Settings” and add the following snippet in the “Stuff for &lt;head&gt;” text box below the existing A-Frame script tag:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd44ab9e212f15746e9cafc27a9b6b70/href">https://medium.com/media/fd44ab9e212f15746e9cafc27a9b6b70/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZYIHV8CQ7kYAr9nuUiwNg.png" /></figure><p>Add the “altspace” attribute to the “&lt;a-scene&gt;” element in the HTML code, so it becomes “&lt;a-scene altspace&gt;”. This is enough to make the example render in Altspace, so click the “Change view” button in Codepen and copy the “Debug Mode” link.</p><p>Head to the <a href="https://account.altvr.com/events/featured">Altspace account site</a> and sign in. Click the “My Events” link, select “Start a Quick Event”, select a room (I prefer “SDK Testing Medium App”), click “Create Event” and then “Visit Now”. This should make you join your own newly created room in the Altspace client.</p><p>Locate the the “Web” button in the room (it’s highlighted in blue in the screenshot from Altspace above) and paste in the url you copied from Codepen. This should make the A-Frame example appear as a 3d hologram inside Altspace. If it doesn’t, you can try with <a href="http://codepen.io/fabricius/debug/bZaEBZ">my fork</a>.</p><p>You might notice that the objects are not on the ground, but are hovering mid-air. You may also have noticed a flat “WebVR” button that is used to switch to WebVR in a browser, but serves no purpose in Altspace. Let’s fix those two issues by configuring the vertical align of the scene and disable the VR mode UI in the &lt;a-scene&gt; element:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb6db47526839f1d91ab3a69916f1f30/href">https://medium.com/media/bb6db47526839f1d91ab3a69916f1f30/href</a></iframe><p>With this, you have a basic example to play around with. A-Frame can do a lot of cool stuff very easily, including animations and interactions, and you can get quite far before you need to start using Javascript.</p><p>Once you do get there, I recommend going with Webpack, React and Redux as your stack. I’m working on an Altspace application using this stack, and <a href="https://github.com/RSpace/agile-space">the code is available on Github</a>. I plan to make a separate article about the technical challenges of building this slightly more advanced Altspace application at a later point.</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/immersion-for-the-win/hands-on-with-virtual-reality-using-a-frame-react-and-redux-bc66240834f7">Hands-on with virtual reality using A-Frame, React and Redux</a></li><li><a href="https://medium.com/immersion-for-the-win/relative-positioning-in-a-frame-d839fc0e3249">Relative positioning in A-Frame</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81cb1bbc3ec4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/building-social-vr-apps-in-altspacevr-with-a-frame-81cb1bbc3ec4">Building Social VR apps in AltspaceVR with A-Frame</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Minecraft is a Big Deal for Virtual Reality]]></title>
            <link>https://medium.com/immersion-for-the-win/why-minecraft-is-a-big-deal-for-virtual-reality-4250b11c979b?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/4250b11c979b</guid>
            <category><![CDATA[minecraft]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[oculus-rift]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 18:10:10 GMT</pubDate>
            <atom:updated>2016-06-02T18:10:09.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qnHZOr5gowu2IOjM3MTF3w.png" /></figure><p>During a recent visit from some friends, their 3 year old son had a great time with our son of the same age, but their older daughter found the whole affair a bit boring and just wanted to sit with her iPad. Eventually the parents thought she had spent enough time with the iPad and asked her to put it away, she refused, telling them she was in the middle of something important. I got curious and asked to see what she was doing.</p><p>It was, of course, Minecraft she was playing. She was delighted when I took out my phone, loaded up my own copy of Minecraft and asked to join her game. She gave me a tour of the vast mansion she had built, complete with bedroom, library and art on the walls. We worked together for a while adding a floor to the house, and she generously let me fiddle around and accidentally break stuff, because, as she said, she could easily fix my mess later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*iMkuIPbs0oSFggni.jpg" /></figure><p>As I explained to her parents that day, to <a href="http://www.nytimes.com/2016/04/17/magazine/the-minecraft-generation.html">the Minecraft generation</a>, it is much more than just another game. It’s a creative medium of expression comparable to, say, Play-Doh or Lego, as it enables players to build impressive structures in three dimensions, some of which could certainly be called art. Minecraft, however, goes beyond static modelling and lets players design and implement complex interactive experiences using buttons, trigger plates and electric-like wiring known as “redstone” in the game. This has led to increasing use of Minecraft in education, particularly to teach children computer science from an early age.</p><p>Minecraft is also an important social medium amongst children and young adults. Anyone can set up a server and invite friends to explore, build, play or just hang out in the game, and to many it’s a richer and more social experience than just chatting via Skype or sharing photos on Snapchat.</p><p>The original Minecraft version for PC, Mac and Linux had, and still has, a notoriously steep learning curve. There are no in-game tutorials or hand holding. (However, PlayStation and Xbox versions have tutorials, and the mobile edition has an easier crafting system). Most player’s first-time experience when trying the game on their own, is to first explore and punch stuff without really knowing what to do. Then night falls, it gets very dark and monsters appear from everywhere and strike the vulnerable player down. The player respawns at their starting point — now without any of the resources they might have gathered and this process repeats until the sun finally rises and the monsters,vulnerable to the light, burn up.</p><p>However, If you know what to do and how to do it, it is easy to survive the night in Minecraft. The game won’t tell you how, but Youtube will. In fact, “Minecraft” is the second most searched for term on the video service, only surpassed by “music” and there are over 70 million videos about Minecraft on Youtube. When I first tried Minecraft, shortly after it was released, my experience was as described above and I was quick to give up and move on. Years later I stumbled upon a tutorial on Youtube that explained <a href="https://www.youtube.com/watch?v=B36Ehzf2cxE">how to survive your first night in Minecraft</a> It turned out to be the first video in a great series of tutorial videos done by a grown man with a real gift for teaching people how to play complex computer games in a well-structured and engaging way. After that, I played a lot of Minecraft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*HavygsQUe6DM5_w6.jpg" /></figure><p>As is the case for many other complex games that people spend hundreds of hours in, you can’t play Minecraft for long without looking into all the additional possibilities offered by mods (modifications) to the game. Minecraft has never had any officially supported modding tools, but crafty players soon started patching the game with their own modifications and making them available for download. For a long time, installing and making mods work was a complex process, but today a tool named <a href="http://www.minecraftforge.net/">Forge</a> has made it a lot easier.</p><p>While modding on PC, Mac or Linux is fairly straightforward, and the same is the case for Android (all allow free access to the file system) it’s a different matter on iOS, Xbox and PlayStation. iOS devices have to be jailbroken to allow for modding, and console owners risk being banned from the online services offered by Microsoft and Sony if any tampering to mod Minecraft is detected.</p><p>Unsurprisingly, it was barely over a month from when the Oculus Rift DK1 was released in March 2013 to when the first version of new mod called <a href="https://minecraft-vr.com/">Minecrift</a> was shared in the Minecraft modding community. Minecrift allows players to experience the game in virtual reality using the Oculus Rift DK1, DK2 and CV1 head mounted displays, and recently <a href="https://www.reddit.com/r/Vive/comments/4f5upo/minecraft_for_vive_in_vr_is_our_first_aaa_title/">a version of the mod compatible with the HTC Vive</a> was also released.</p><p>Unfortunately, the Oculus Store for Gear VR is yet another example of a closed app ecosystem, a walled garden where only approved apps are let in, with security measures in place to ensure that downloaded apps are not tampered with. With Android itself still being a fairly open OS (compared to iOS), I have no doubt that crafty modders will soon find a way around those limitations, but it’s still a shame that Facebook and Oculus have to make it so hard to tinker with Gear VR content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*RJOVHs1aqPxg-Utv.png" /></figure><p>But why is Minecraft such a big deal for virtual reality? Because it takes a game, a tool, a platform and a social medium that is very familiar to the Minecraft generation and brings it into virtual reality. When you play Minecraft in VR, you realise just how well the game and the medium fit each other.</p><p><a href="http://techcrunch.com/2016/04/03/virtual-reality-is-about-to-go-mainstream-but-a-lack-of-content-threatens-to-hold-it-back/">We need content for virtual reality</a>. Okay, build it Minecraft, you know how to do that. Then export it with<a href="http://www.realtimerendering.com/erich/minecraft/public/mineways/">Mineways</a> and import it into, say, <a href="https://aframe.io/">A-Frame</a> and you have created your own easily shared WebVR content using Minecraft. Or import some of the hundreds of thousands of shared Minecraft maps to experience everything from roller coasters and mazes to a full simulation of a working CPU.</p><p>We need a <a href="https://en.wikipedia.org/wiki/Metaverse">metaverse</a> for virtual reality. One that connects people and content, and allows them to socialize and build stuff together. Sure, Altspace, High Fidelity, Beloola and all the others are great initiatives, but it seems like Minecraft already offers so much of what we desire from a metaverse.</p><p>The Minecraft generation are the future virtual reality power users and they don’t necessarily want a polished, locked down virtual reality experience that their parents can figure out. They want to tinker, be creative and socialize on their own terms. Let Minecraft show the way for the virtual reality applications you build, and you might just get it right.</p><p><em>For more about Minecraft and the Minecraft generation I highly recommend </em><a href="http://www.nytimes.com/2016/04/17/magazine/the-minecraft-generation.html"><em>this New York Times article</em></a><em>. Ready to dive into Minecraft adventure mode? Use </em><a href="https://www.youtube.com/watch?v=B36Ehzf2cxE&amp;list=PL7326EF82122776A9"><em>these tutorials as your starting point</em></a><em>.</em></p><p><strong><em>This article was originally published on </em></strong><a href="http://www.awwwards.com/why-minecraft-is-a-big-deal-for-virtual-reality.html"><strong><em>Awwwards</em></strong></a><strong><em> on May 18 2016.</em></strong></p><p><em>Casper Fabricius is a </em><a href="http://immersionftw.com/"><em>freelance developer specializing in virtual reality</em></a><em>. With 16 years of experience as a fullstack web developer he has a special interest in </em><a href="http://webvr.info/"><em>WebVR</em></a><em> and is an </em><a href="https://aframe.io/"><em>A-Frame</em></a><em> contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/ce8967190b21">5 things Land’s End taught me about virtual reality user experience</a></li><li><a href="https://medium.com/p/9f383fee04e5">Why WebVR matters</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4250b11c979b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/why-minecraft-is-a-big-deal-for-virtual-reality-4250b11c979b">Why Minecraft is a Big Deal for Virtual Reality</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</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 set up Unity for Gear VR development]]></title>
            <link>https://medium.com/immersion-for-the-win/how-to-set-up-unity-for-gear-vr-development-81615792725d?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/81615792725d</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[samsung-gear-vr]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Tue, 05 Apr 2016 12:46:52 GMT</pubDate>
            <atom:updated>2017-08-27T18:33:25.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Virtual reality development is a fast-moving target. New versions of hardware, game engines, SDKs, drivers and support tools are coming out all the time. Preparing to build a Gear VR game at <a href="http://nordicgamejam.org/">Nordic Game Jam</a> later this week, I found it hard to find up to date instructions on how to setup my development machine to build a Gear VR game in Unity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*-FbaOvpJ8LhsPAs1ZO2exg.jpeg" /></figure><p>Unity recently added a convenient “Virtual Reality Supported” setting. Oculus makes the package <a href="https://developer.oculus.com/downloads/game-engines/1.3.0/Oculus_Utilities_for_Unity_5/">Oculus Utilities for Unity</a> available with a custom camera rig. Unity provides a fantastic <a href="https://www.assetstore.unity3d.com/en/#!/content/51519">VR Samples project</a>, also with a custom camera rig. However, <em>you don’t need any of these custom camera rigs in your project for VR to work on the Gear VR</em> — just check “Virtual Reality Supported” and the default camera works with head tracking out of the box. Once you go beyond basic experimentation, you will almost certainly want to make a custom camera rig using those provided by Oculus or Unity as a starting point.</p><h4>Dependencies for building a Gear VR project in Unity</h4><p>What you do need before you can build your Gear VR project in Unity, publish it to your phone and see it in the Gear VR headset, is to setup your development machine, phone and Unity properly. This article explains exactly what steps you need to take to get there.</p><p><strong>Install the correct Unity version<br></strong>The newest version of the Oculus runtime is currently 1.3. The only version of Unity that works correctly with this runtime for Gear VR projects is Unity 5.3.4p1. <a href="http://unity3d.com/unity/qa/patch-releases/5.3.4p1">You can download this version of Unity here</a>.</p><p>(These exact version numbers will probably be obsolete almost before I can publish this article, but bear in mind that the newest version of Unity might not always be right one to use for VR development.)</p><p><strong>Patch Unity’s Oculus plugin<br></strong>While <a href="https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrplugin-130/">Oculus stresses that you must use Unity 5.3.4p1 for their 1.3 runtime</a>, they also point out that you need to override Oculus plugin that comes with that version of Unity and replace it with the one they provide in their <a href="https://developer.oculus.com/downloads/game-engines/1.3.0/OVRPlugin_for_Unity_5/">OVRPlugin 1.3.0 for Unity 5</a>.</p><p>Unpack the downloaded file and replace Unity’s “oculus” directory with the downloaded “oculus” directory. On OSX, the directory is located by default at “/Applications/Unity/Unity.app/Contents/VR”, while it can found at “C:\Program Files\Unity\Editor\Data\VR\oculus” on Windows by default.</p><p><strong>Install the Android SDK<br></strong>It should come as no surprise that <a href="https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-mobileprep/">you need the Android SDK to build a Gear VR project</a> in Unity. You can <a href="http://developer.android.com/sdk/index.html#Other">download it here</a> and place it anywhere you like on your computer. In Unity, navigate to “Unity” &gt; “Preferences” and select the “External Tools” tab. Click the “browse” button for Android SDK and select the directory where you placed the Android SDK.</p><p><strong>Install the Java Development Kit<br></strong>Unity also needs the JDK to be able to build an Android project. You can <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">download it here</a>, and Unity will in most cases automatically detect it after a restart. You can verify it by navigating to “Unity” &gt; “Preferences” and select the “External Tools” tab where “Android JDK” should now be filled out. If it isn’t, building a project for the Android platform should have Unity auto detect the path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIVIwqtQ6Vkc4kr2Ie6WSA.png" /><figcaption>The assets and settings required to build and publish a Gear VR project from Unity</figcaption></figure><h4>Publishing a Gear VR project to the phone from Unity</h4><p>The steps above should let Unity build an android application package (“.apk”) on your development machine. You also want to see your game running <em>in </em>the Gear VR, however, and that requires a few more steps.</p><p><strong>Download an Oculus Signature File (osig) for your phone<br></strong>You need to <a href="https://developer.oculus.com/documentation/publish/latest/concepts/publish-mobile-app-signing/">sign your Gear VR application</a> before it will run on the phone. In a terminal window, go to the directory where you installed the Android SDK. Change into the “platform-tools” directory and run this command (omit the prefixed “./” on Windows): “./adb devices”.</p><p>Go to <a href="https://developer.oculus.com/osig/">https://developer.oculus.com/osig/</a> (make sure you are logged in with your Oculus Developer account) and paste the device id output from the command above into the input field. Create the folder structure “/Plugins/Android/assets/” in your Unity project. Click the “Download File” button and save the file in the folder you just created.</p><p><strong>Enable development mode on your phone<br></strong>If you have done any Android development with your Gear VR-compatible phone before, you can skip this step. Otherwise, unlock the phone and connect to the computer via USB. Approve any prompts on the phone to trust the computer and grant it access.</p><p>In Windows 7, 8 and 10, most Android phones will be immediately recognized when you connect them, whereas on OSX you will need to install <a href="https://www.android.com/filetransfer/">Android File Transfer</a> to get the phone properly connected.</p><p>Then <a href="https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-android-debug/">follow these steps to enable development mode</a>.</p><p><strong>Build and run the project<br></strong>That’s it, you are ready to build your project and publish it to your phone! Press Command/Ctrl + B or go to “File” &gt; “Build &amp; Run”. Give the package any name and save it anywhere on your computer.</p><p>If all the steps above have been completed successfully, you should — once the build and publishing process in Unity completes — be prompted to insert your phone into the Gear VR and see the scene.</p><p>You now have an app on your phone with the name you have configured Unity to use. Unity will update this app whenever you “Build &amp; Run” the project with the phone connected via USB.</p><h4>Easing your development workflow</h4><p>While Unity supports previewing games directly on an Oculus Rift, you will have go through the “Build &amp; Run” cycle every time you need to test your Gear VR game. This is a bit of a painstaking process, especially since you have to disconnect your phone from the Gear VR to connect it via USB, and then put it back into the headset.</p><p>Here are two optional steps you can take to make your development workflow easier.</p><p><strong>Enable VR developer mode on your phone<br></strong>The VR developer mode will allow you to view the game directly on the phone screen without inserting it into the Gear VR. However, you will not be able to look or move around as this typically relies on the sensors and touchpad in the Gear VR.</p><p>Follow <a href="https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-troublesh-device-run-app-outside/">these steps to enable VR developer mode</a>.</p><p><strong>Publish over WiFi<br></strong>You can publish an updated build directly from Unity to the phone without removing it from the Gear VR headset by using WiFi instead of USB to push the updated game.</p><p>Install <a href="https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry">ADB wireless (no root)</a> from the Google Play Store on your phone, connect it to your computer via USB and run the app. Follow the on screen instructions, which tell you to run:</p><p>./adb tcpip 5555<br>./adb connect [device IP]</p><p>Remember that the adb command is in the “platform-tools” directory of your Android SDK install directory and omit the prefixed “./” on Windows.</p><p>Build &amp; Run the project once while the phone is connected via USB. On the following builds you can keep your phone in the Gear VR and it will automatically restart with the new build once the Unity is done building and publishing it over WiFi.</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/9f383fee04e5">Why WebVR matters</a></li><li><a href="https://medium.com/p/bc66240834f7">Hands-on with virtual reality using A-Frame, React and Redux</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81615792725d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/how-to-set-up-unity-for-gear-vr-development-81615792725d">How to set up Unity for Gear VR development</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Relative positioning in A-Frame]]></title>
            <link>https://medium.com/immersion-for-the-win/relative-positioning-in-a-frame-d839fc0e3249?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/d839fc0e3249</guid>
            <category><![CDATA[webvr]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Wed, 02 Mar 2016 13:05:51 GMT</pubDate>
            <atom:updated>2017-08-27T18:33:59.249Z</atom:updated>
            <content:encoded><![CDATA[<p>Following up on my <a href="https://medium.com/immersion-for-the-win/hands-on-with-virtual-reality-using-a-frame-react-and-redux-bc66240834f7">popular article on how to build a VR experience using A-Frame, React and Redux</a>, I’d like to share a few quick tips on how positioning works in A-Frame, and how you can take advantage of relative positioning when creating your scenes.</p><p><em>TL;DR:</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3216445f8bb18ad40f173129165bf097/href">https://medium.com/media/3216445f8bb18ad40f173129165bf097/href</a></iframe><p>Let’s be honest here: Transforming A-Frame entities — getting their position, rotation and size right — is fiddly work compared to how intuitively it can be done in a GUI editor such as Unity. But you can take some of that pain away by understanding a simple fact about A-Frame:</p><p><strong>Using &lt;a-entity&gt; as a container works the same way in A-Frame as using&lt;div style=”position: absolute;”&gt; does in regular HTML and CSS.</strong></p><p>The &lt;a-entity&gt; primitive (or Entity component in aframe-react) is the “workhorse” of A-Frame, meaning that most other primitives such as &lt;a-cube&gt; or &lt;a-image&gt; simply wraps &lt;a-entity&gt;, to make <a href="https://aframe.io/docs/core/">the entity-component system of A-Frame</a> more accessible. You can apply any component to it, such as geometry or material, and get a visible entity rendered in your scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwcaVmhU0OlK9toS6vy-_g.png" /><figcaption>A screenshot from the WebVR presentation example I go into below</figcaption></figure><p>To use CSS terminology, think of everything in A-Frame as being absolutely positioned by default. If you don’t specify a position for an entity, it will default to appear in (0, 0, 0). In a typical workflow, you will start to add more and entities, positioning them as you go. Often, some of these entities will be closely related, part of the same whole so to speak. An example could be a table with a number of things on it, or a car consisting of many different entities to make up its whole.</p><p>You can wrap such related entities in an &lt;a-entity&gt; tag with a position attribute on it, and that will make all the entities inside the container be <em>positioned relative to the position of the entity container rather than to the entire scene</em>. Just like DOM elements such as &lt;div&gt; will be positioned relative to their container when containing element has position absolute or relative, and the element itself has position absolute.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Ffabricius%2Fembed%2Fpreview%2FEPOMYo%3Fheight%3D600%26slug-hash%3DEPOMYo%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=https%3A%2F%2Fcodepen.io%2Ffabricius%2Fpen%2FEPOMYo&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F406441.EPOMYo.small.225469ef-a628-4a90-b4e8-3448d2dc8f84.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c9813c6b35aefd529f22a63dc532469/href">https://medium.com/media/7c9813c6b35aefd529f22a63dc532469/href</a></iframe><p>In my case, I was making a simple scene to use in a presentation about WebVR (you can try it above by clicking “Run Pen” and use the mouse and arrow keys to look and move). In it, I have a forest (really just a single model) and a number of texts rendered in 3D. I have grouped the forest and the texts together, as each text’s position relative to the trees and rocks in the forest is important, but I also want to be able to position and rotate the forest and the texts together.</p><p>I also have a large number of cubes textured with photos of people in the scene. Each cube is an entity with its own unique position and rotation, but again I have grouped them all together by wrapping them in an &lt;a-entity&gt; tag, which is positioned where I want the entire “photo sphere” in the scene.</p><p>The <a href="http://codepen.io/fabricius/pen/EPOMYo">entire example is available on CodePen</a>, if you’d like to play around with it. The example also shows how to add gamepad navigation and 3d text components to A-Frame.</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/bc66240834f7">Hands-on with virtual reality using A-Frame, React and Redux</a></li><li><a href="https://medium.com/p/9f383fee04e5">Why WebVR matters</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d839fc0e3249" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/relative-positioning-in-a-frame-d839fc0e3249">Relative positioning in A-Frame</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 things Land’s End taught me about virtual reality user experience]]></title>
            <link>https://medium.com/immersion-for-the-win/5-things-land-s-end-taught-me-about-virtual-reality-user-experience-ce8967190b21?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/ce8967190b21</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[game-design]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Mon, 22 Feb 2016 15:44:31 GMT</pubDate>
            <atom:updated>2017-08-27T18:34:30.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aD-ui3TD6le0P9EdoiqPPw.png" /></figure><p>Land’s End is definitely the best game I’ve tried on my Gear VR. It’s a calm, short exploration/puzzle game that draws a line all the way back to <a href="https://en.wikipedia.org/wiki/Myst">Myst</a>. As a VR game, it gets so many things right, and I wanted to share a few learnings I will take with me when building VR experiences.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXwJ9fiH2Ksw%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXwJ9fiH2Ksw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXwJ9fiH2Ksw%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/578202c67309b7e08055992f1e76f190/href">https://medium.com/media/578202c67309b7e08055992f1e76f190/href</a></iframe><h4>1. Gaze based interaction can work great</h4><p>The HTC Vive controllers are great and the Oculus Touch controllers will probably be even better. Leap Motion is <a href="http://blog.leapmotion.com/orion/">drastically improved</a> and eye based tracking is <a href="https://theeyetribe.com/ces-2016-the-eye-tribe-showcases-eye-tracking-for-virtual-reality-at-sands-booth-80344/">undoubtedly coming</a> in next generation head mounted displays.</p><p>The current Gear VR doesn’t have any of this, though. It has a fiddly touchpad on the side and the ability to connect a bluetooth gamepad. For this reason (and after loads of user testing), the developers behind Land’s End <a href="http://www.develop-online.net/tools-and-tech/unity-focus-going-hands-free-in-land-s-end/0216795">decided to go with ‘gaze’ controls only</a>. Good decision.</p><p>Their implementation gets a number of things exactly right:</p><ul><li>The cursor (or reticle) is only visible when looking near something that can be interacted with, and it’s appearance is augmented by an auditory clue.</li><li>Interaction spots are easy to find, with movement spots ‘sticking out’ as white dots with a black border, and other spots being more integrated into the environment, but always consistently marked.</li><li>Once the cursor hovers on the right spot, intuitive visual and auditory cues clearly indicate how long the gaze will need to be kept before the interaction is committed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUcbrf7NS5yJip3u9i4V-Q.jpeg" /></figure><h4>2. It can feel natural to move around with gaze</h4><p>As is the case in many 1st person VR games, you have no body in Land’s End. If you look down, you just see the ground beneath. You are a ghost.</p><p>That blends well together with the way movement works in Land’s End. At least one ‘movement spot’ — a white circle with a black border — is always visible, and once activated, you glide towards it with a motion the developers have without a doubt spent endless hours on getting just right. Once you reach your destination, the ‘movement spot’ falls to the ground and sticks out.</p><p>VR best practice teach us that many people will feel nauseated when moving around in a virtual world while their body stays perfectly still in the real world. This can be neutralized to a large extent by giving a static point of reference in the virtual world, such as placing the 1st person view inside a car.</p><p>Land’s End doesn’t do this, but you somehow feel safe when floating from one point to another as a ghost, enjoying the scenery along the way. It certainly didn’t get me nauseated, although I did get slightly dizzy once or twice when I played it standing. Especially since the game likes to float you all the way to an edge with a splendid view — and a long way down.</p><h4>3. Gaze controls works better when there is no time pressure</h4><p>I’ve tried quite a few games on the Gear VR where you ‘shoot with your eyes’. Those games are based on quickly and preciously turning your head in the right direction, and you do so over and over again. It quickly becomes a strain on your neck, and the lack of precision an annoyance.</p><p>Land’s End is calm, serene game where you have all the time in theworld to move around and figure things out. That makes a massive difference and plays to strengths of gaze controls, letting your head move naturally and without strain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Djox_c-3P3ZjIb4M4hhmIA.jpeg" /></figure><h4>4. Use the full 360</h4><p>Many VR games assume you are sitting at a desk with some ability to look around and move your upper body a bit, but not much more than that. So they keep everything important more or less in front of you, or provide a method for turning in the virtual world without moving in the real world.</p><p>Land’s End starts out with explicitly telling the player that he or she will need to able to turn around 360 degrees either sitting on a rotating chair or standing up — which says a lot about how uncommon this approach is currently is. The games goes on to make great use of this premise.</p><p>Several times in the game, after floating from one spot to another, you are forced to turn 90 degrees or more to find your next movement spot or puzzle. This in turn makes you see and enjoy much more of the scenery all around you, than if you had just always had things right in front of you.</p><h4>5. Moving blocks with your gaze is awesome</h4><p>Many of Land’s End’s puzzles have you moving around stone blocks. This might sound mundane, but the developers have nailed the interaction so well that it becomes an immensely enjoyable task. Once activated, the position of your gaze relative to the interaction point on the stone block decides which direction the block moves in, and how fast it moves. To drop the block at it’s current location, you simply look sharply and quickly away to ‘cut the connection’. Very intuitive.</p><p>Spoiler alert! (Skip this paragraph to avoid.) My favorite chapter in the game — chapter 3 — includes assembling a man-like statue out of several stone blocks. The stone blocks have to be positioned just right to ‘activate’ the statue, and you have to ‘cut the connection’ at just the right time to place the blocks correctly. I found myself thinking: ‘Maybe <em>this</em> is how they really built the Pyramids’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sG-zqm0v2JcDNnjvLaCbeQ.png" /></figure><p>There is discrete help built into moving blocks. Blocks that are supposed to be rotated will do so eagerly once activated, while blocks that shouldn’t be rotated will respond differently and refuse to do so. Also, invisible walls have been put up to prevent the blocks from leaving their designated puzzle area. Again, it probably took a lot of user testing to get these things right.</p><h4>In conclusion</h4><p>VR experiences need a lot of user testing and tweaking around movement and interaction, but if enough time is spent, the result can be as good and novel as is the case for Land’s End.</p><p>While we eagerly await and experiment with new control schemes for VR experiences, let’s not forget that we have something that can work great with Cardboard, Gear VR and everything else that is coming, if we follow the example Land’s End sets: Gaze controls.</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/9f383fee04e5">Why WebVR matters</a></li><li><a href="https://medium.com/p/4250b11c979b">Why Minecraft is a Big Deal for Virtual Reality</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce8967190b21" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/5-things-land-s-end-taught-me-about-virtual-reality-user-experience-ce8967190b21">5 things Land’s End taught me about virtual reality user experience</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-on with virtual reality using A-Frame, React and Redux]]></title>
            <link>https://medium.com/immersion-for-the-win/hands-on-with-virtual-reality-using-a-frame-react-and-redux-bc66240834f7?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc66240834f7</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Sun, 03 Jan 2016 19:12:11 GMT</pubDate>
            <atom:updated>2017-08-27T18:31:56.934Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Update March 19, 2017: I’m still seeing a lot of traffic to this article, so I’ve updated the </em><a href="https://github.com/RSpace/aframe-meetup-example"><em>example code on Github</em></a><em> with the newest versions of all dependencies.</em></p><p>Having established <a href="https://medium.com/immersion-for-the-win/why-webvr-matters-9f383fee04e5">why WebVR matters</a>, it’s time to get our hands dirty and build a simple WebVR example using <a href="https://aframe.io/">A-Frame</a>, <a href="https://facebook.github.io/react/">React</a> and <a href="http://redux.js.org/">Redux</a>. One of the things we can do with WebVR that a native VR app can’t do, is switching seamlessly between a normal html/css-based rendering of our state in the browser, and a 3d rendering of the same state. So let’s try that out with some running code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2v7BOXLUgM13SsL18EcXZA.png" /><figcaption>The initial “2d” html/css-based rendering of the members. Notice how my photo has a green tint — this is a state indicating I have been classified as a specific member type.</figcaption></figure><p>I have created a <a href="http://meetup-vr.netlify.com/">small demonstration application</a> based on the <a href="https://github.com/ngokevin/aframe-react-boilerplate">A-Frame React boilerplate project</a> with Redux and <a href="https://facebook.github.io/immutable-js/">Immutable</a> added for keeping the state. The application uses the <a href="http://www.meetup.com/meetup_api/">Meetup API</a> to get the participants in the December meetup of the <a href="http://www.meetup.com/CPH-VR-AR-360/">Copenhagen VR+AR+360 group</a> and renders a list of their profile photos. When a photo is clicked, it changes tint color to indicate that the member has been classified as either a <a href="http://www.forbes.com/sites/andyellwood/2012/08/22/the-dream-team-hipster-hacker-and-hustler/">“hacker”, “hipster” or “hustler”</a>.</p><p>By clicking a button, the user can change the view to a 3d rendering of the same list of members. If viewed on a VR-compatible device, the user will be placed inside a sphere of these profile photos with the ability to change the classification of each member using a gaze-controlled cursor to click on them. When looking down, there’s a red sphere that can be clicked to switch back to “2d mode”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZgvaJSBIEbRsJ6anoYYUA.png" /><figcaption>The 3d rendering of the same list of members. Notice how my photo has preserved the state and still has a green tint.</figcaption></figure><p><a href="http://meetup-vr.netlify.com/">The demonstration application can be viewed live here</a> — a mobile phone or WebVR-compatible browser is required to switch from 3d-mode to full stereoscopic VR-mode. <a href="https://github.com/rspace/aframe-meetup-example">The source code for the application is available on Github</a>.</p><h4>Let’s get technical</h4><p>The application is fully built with React, Redux and <a href="https://webpack.github.io/">Webpack</a> — libraries that will be familiar to most front end developers. The <a href="https://github.com/ngokevin/aframe-react">aframe-react library</a> acts as a bridge between A-Frame and React, and the <a href="https://github.com/rackt/react-redux">react-redux library</a> helps us connect our components cleanly with our state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*x5J9ddP0lQVWWzrv9pblxA.png" /></figure><p>The state consists of two entries:</p><ul><li>A boolean <em>vrMode</em> that indicates if components should render their 3d/VR representation using A-Frame, or their 2d representation using regular html and css.</li><li>An array of <em>members</em> with their id, name, photo and type.</li></ul><p>When a member is clicked in either mode, the <em>NEXT_MEMBER_TYPE</em> Redux action is dispatched, the member type is changed and React takes care of re-rendering as needed. Because A-Frame is just markup and components from aframe-react are used, this re-rendering works seamlessly in both 2d and 3d mode.</p><p>When the button to enable 3d mode is clicked, the <em>ENABLE_VR_MODE</em> Redux action is dispatched. This simply changes the <em>vrMode</em> boolean in the state to true, and again Redux and React handles applying and rendering the new state.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f885427a1511a77bc2706ece4aded87/href">https://medium.com/media/9f885427a1511a77bc2706ece4aded87/href</a></iframe><p>In a large-scale application, it might be better to split components into “2d” and “3d” components and have containers choose the right one depending on the state, but in this example I have opted to have both renderings in the same component. The <em>Wrapper</em> container, as illustrated above, simply renders A-Frame markup when <em>vrMode</em> is enabled and regular html when it is not.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/27e6c32f172d66fa599f74a88ca5aa77/href">https://medium.com/media/27e6c32f172d66fa599f74a88ca5aa77/href</a></iframe><p>The <em>Members</em> container needs to only make one difference depending on the mode of rendering: React requires render methods to always return one node, and while this container node can be a regular div in 2d mode, it must be an A-Frame <em>Entity</em> element in 3d mode. The <a href="https://aframe.io/docs/core/entity.html">Entity element</a> is the basic building block of A-Frame, but it is also A-Frame’s equivalent of a “neutral” container such as the div element. If a div is used as a container in 3d mode, nothing will be rendered in the canvas as the scene contains invalid markup.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3df027bf32ad31fb51801ca025d88161/href">https://medium.com/media/3df027bf32ad31fb51801ca025d88161/href</a></iframe><p>The <em>Member</em> component (not to be confused with the plural <em>Members </em>container, sorry for the confusing naming), also looks at <em>vrMode</em> to determine how to render itself. In 3d mode, the Entity component provided by aframe-react is used to render a box with the profile photo as a texture tinted with the color derived from the member type. In 2d mode, a regular div with an image inside is rendered, and a state-modifying class is added depending on the member’s type.</p><p>In both cases, it is possible to use the same <em>onClick</em> callback when the member is clicked, whether that’s coming from clicking a div element on a web page or box in virtual reality. Redux handles the action and updates the state, and React re-renders as needed. In this setup, the libraries don’t need to know anything about how the state is rendered to do their thing.</p><p>Again, to review the source code in its entirety and play with it locally, head over to the <a href="https://github.com/rspace/aframe-meetup-example">repository on Github</a>.</p><h4>In conclusion</h4><p>With A-Frame, web developers can easily get started on building 3d and VR visualizations, and they can apply these visualizations to existing React-based applications with a minimum of changes. This is especially true if the architecture uses the principles of <a href="https://facebook.github.io/flux/">Flux</a>, as the shared unidirectional state and event flow lends itself well to many different representations of the same data.</p><p>I encourage everyone who are building VR business software to consider if a combination between 2d and 3d/VR might be the best approach, and if such a user experience wouldn’t make most sense in the browser. On top of that, it could also be faster to implement this way, depending on your team’s skill set.</p><p>Adding that “VR feature” to your existing web-based SaaS solution could be a low-hanging fruit with this approach. Wouldn’t your users prefer virtual reality visualizations directly in their browser as opposed to downloading yet another mobile app or — gasp — installing actual desktop software? Wouldn’t you?</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/4250b11c979b">Why Minecraft is a Big Deal for Virtual Reality</a></li><li><a href="https://medium.com/immersion-for-the-win/building-social-vr-apps-in-altspacevr-with-a-frame-81cb1bbc3ec4">Building Social VR apps in AltspaceVR with A-Frame</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc66240834f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/hands-on-with-virtual-reality-using-a-frame-react-and-redux-bc66240834f7">Hands-on with virtual reality using A-Frame, React and Redux</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why WebVR matters]]></title>
            <link>https://medium.com/immersion-for-the-win/why-webvr-matters-9f383fee04e5?source=rss----aa23f526604---4</link>
            <guid isPermaLink="false">https://medium.com/p/9f383fee04e5</guid>
            <category><![CDATA[oculus-rift]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[webvr]]></category>
            <dc:creator><![CDATA[Casper Fabricius]]></dc:creator>
            <pubDate>Tue, 22 Dec 2015 14:05:29 GMT</pubDate>
            <atom:updated>2017-08-27T18:34:59.949Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m excited about the potential of virtual reality, augmented reality, 360 degree video and related technologies. While the immediate consumer focus is around video games, movies and other types of entertainment (ahem), I don’t seem be alone in expecting VR and AR to <a href="http://www.digi-capital.com/news/2015/04/augmentedvirtual-reality-to-hit-150-billion-disrupting-mobile-by-2020">revolutionize a wide number of industries over the coming years</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7pcu0zJRmZe9CfUR3VXAw.jpeg" /></figure><p>The leading platform for building VR experiences today is the game engine <a href="http://unity3d.com/">Unity</a>, both because the company had the foresight to add support for the <a href="http://oculus.com/">Oculus Rift</a> development kit early on, but also simply because the early use cases from when Oculus Rift was still “just” a <a href="https://www.kickstarter.com/projects/1523379957/oculus-rift-step-into-the-game">very successful Kickstarter project</a> centered around video games. Today game engines Unreal Engine, CryEngine and Stingray also support Oculus Rift, and all of them along with more game engines are expected to support the consumer versions of the Oculus Rift, HTC Vive and Playstation VR when they become available <a href="http://techcrunch.com/2015/12/10/augmented-and-virtual-reality-1-0-2016-preview/">during 2016</a>.</p><p>Meanwhile, <a href="http://vr.chromeexperiments.com/">Google</a> and <a href="http://mozvr.com/">Mozilla</a> have been busy specifying and implementing support for virtual reality devices in a joint initiative dubbed <a href="http://webvr.info/">WebVR</a>. As of today, support for Oculus Rift and potentially other head mounted displays is only available in experimental or development builds of Chrome and Firefox (see the WebVR site for up-to-date download links), but an excellent <a href="http://smus.com/responsive-vr/">polyfill for WebVR</a> makes it possible to start building VR experiences today that can run in any modern browser.</p><p>Using the <a href="https://github.com/borismus/webvr-boilerplate">WebVR boilerplate project</a> which includes the polyfill, it is possible to build a 3D scene using <a href="http://threejs.org/">Three.js</a> that can be explored on both a regular PC, on a mobile device — with or without a cardboard — and in a fully fledged head mounted display like the Oculus Rift. The mouse or trackpad is typically used to look around the scene on a PC. If a head mounted display is connected and a compatible browser is used, the WebVR polyfill redirects control to the actual WebVR API which renders the scene directly to the head mounted display. On a mobile device, the device orientation is used for this, and a stereoscopic mode can be enabled if a <a href="https://www.google.com/get/cardboard/get-cardboard/">Google Cardboard</a> compatible viewer is available to use with the phone.</p><p>While a nice side-effect, the major selling point of WebVR, however, is not the notion of “write once, run everywhere”. Unity, for instance, is able to make native builds for all major platforms from the same code base, including PC, Mac, Linux, iOS, Android, Playstation and Xbox. When made by professionals, such native builds will undoubtably look better and run faster than a comparable VR experience built with WebGL and WebVR. At least when we are talking about AAA games or other experiences where high fidelity and performance are paramount.</p><p>The major selling point of WebVR over natively built experiences is the same as the web has always had over desktop apps and mobile apps today: No need to download and install anything. Click a link, type in a url, and the application runs directly in your browser. No app stores and no walled gardens. The consideration around walled gardens is an important one, and in the blog post <a href="https://www.zapchain.com/a/wTev5KOlT7">Dreams of an Open Metaverse</a>, Matthias McCoy-Thompson of <a href="http://agoravr.com/">AgoraVR</a> discusses “Open vs. Closed” for VR with many great insights.</p><p>Another reason of why WebVR matters is that it provides a great entrypoint for the millions of web developers around the world to start building VR experiences. Sure, the game developers have many advantages with their understanding of building immersive 3D environments with compelling visuals, sound and storytelling, but web developers come with different set of advantages: They understand how to build software for businesses, they understand UX and they understand how to integrate with and draw data from many different sources of information.</p><p>Web developers have the advantage of living in a world where open source projects are sprawling and libraries for any conceivable purpose are readily available. If they see something cool, they can simply view the source in the browser and reuse the code in their own projects. <a href="https://aframe.io/">A-Frame</a> is a great example of an open source project that makes building basic VR experiences or even just playing a 360 video in the browser really simple. And it even comes with <a href="https://github.com/ngokevin/aframe-react-boilerplate">support for ReactJS</a>.</p><p>WebVR matters because the open web matters, in whatever shape and form it might take in the future.</p><p><em>Casper Fabricius is co-founder of </em><a href="https://www.cimmerse.com/"><em>Cimmerse — Sell more with 3D, VR &amp; AR</em></a><em>. Coming from 17 years of experience as a fullstack web developer he has become an expert in WebVR and is an A-Frame contributor. He tweets abouts VR and coding as </em><a href="https://twitter.com/fabricius"><em>@fabricius</em></a><em>.</em></p><p>If you liked this article, you may also like:</p><ul><li><a href="https://medium.com/p/bc66240834f7">Hands-on with virtual reality using A-Frame, React and Redux</a></li><li><a href="https://medium.com/p/4250b11c979b">Why Minecraft is a Big Deal for Virtual Reality</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f383fee04e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/immersion-for-the-win/why-webvr-matters-9f383fee04e5">Why WebVR matters</a> was originally published in <a href="https://medium.com/immersion-for-the-win">Immersion FTW</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>