Summoning a dragon in Mixed Reality using TypeScript and your voice

Published Jul 22 2021 03:38 PM 2,809 Views
Microsoft

dragon-screenshot.png

 

Dragons have been fascinating the world for centuries, we find them in the folklore of many cultures worldwide from Mesopotamian art and literature to nearly all Indo-European, Near Eastern, and of course the Chinese mythology. Wouldn't it be cool if we were able to (safely) summon our own dragon in the comfort of our home? Turns out it is possible and probably less complicated than you might think. In this article, we will discuss the high-level concepts and technologies needed and I will share a demo for you to try in your browser (best on mobile) or your Mixed Reality setup (Augmented/Virtual reality). 

 

If, like me, you tend to be a little impatient, you can start the free "Create and deploy a voice activated WebXR app with Babylon.js and Azure Cognitive ServicesLearn Module to learn how to create this application, or you can try the browser demo (click this link or scan the QR code below to open it on your phone) to get a feel of what you will be learning to make. (Hint: In the demo, after you summon your dragon, try telling the dragon to “go red” or “go blue” *wink wink*) If you are feeling adventurous, check out the source code of the demo. 

 

JING1201_1-1626977179519.png      MicrosoftTeams-image.png    dragon-qr-code.png

 

XR Basics 

Let’s take a moment to talk about Extended Reality on the web. Mixed, Extended, or Cross Reality (often abbreviated XR) is a term referring to the use of Virtual Reality (VR) and/or Augmented Reality (AR). The term Virtual Reality probably reminds you of headsets that allow gamers to be fully immersed into the world of games such as Beat Saber (which I am personally a huge fan of).  

On the other hand, Augmented Reality is a technology you probably have seen or even used many times, especially from your mobile phone. You could have been reviewing a piece of furniture in your living room before ordering it online, playing the famous Pokémon Go mobile game, or even just applying TikTok/Snap/Instagram filters.  

 

JING1201_2-1626977179526.png      JING1201_3-1626977179528.png

 

Learn Module

The Microsoft Learn Module I wrote walks you through a concrete example: creating and deploying a voice activated web based mixed reality app using a JavaScript library called Babylon.js and a speech-to-text cloud service provided by Azure. The theoretical use case explored in the Learn Module is showcasing the interactivity of a fictitious new amusement park attraction (which could potentially be real).  

In short, the module will teach you how to code a web app that will listen for a vocal command and render a virtual, animated dragon that will float in the space in front of you. Finally, you will learn how to easily deploy such an app to preview it from the web (no app installation needed) from your mobile phone, headset, or even your desktop/laptop browser (though losing the cool Augmented Reality effect). 

 
Tech Concepts 

To summon a virtual dragon we use four key technologies: Speech-to-text, WebXR, Babylon.js, and Azure Blob storage. 

 

Speech-to-text: the process of transcribing spoken audio to text. 

In the Learn module, we use a great cloud service provided by Azure to be truly cross platform, accurate, and performant. For the linked demo above, we used an experimental browser API illustrating that using a cloud service is avoidable, but such services work much better, more accurately, and across all platforms. This transcription is important when building experiences without a mouse and keyboard, and the way for applications to understand the user's commands/answers is to convert the audio signal into text that your code can easily process. 

 

JING1201_4-1626977179523.png

 

WebXR: a low level Extended Reality web API available on all modern browsers. As described in the MDN entry: "WebXR is an API for web content and apps to use to interface with mixed reality hardware such as VR headsets and glasses with integrated augmented reality features. This includes both managing the process of rendering the views needed to simulate the 3D experience and the ability to sense the movement of the headset (or other motion-sensing gear) and providing the needed data to update the imagery shown to the user." WebXR, however, is not a rendering technology, and most developers don't use WebXR directly. They instead rely on higher-level rendering frameworks using WebGL or WebGPU. So while this is a key technology, it is hidden behind the nice APIs provided by the rendering framework. 

JING1201_5-1626977179514.png

 

Babylon.js: a free, open source, high level JavaScript rendering/game engine that can leverage WebXR to create great Extended Reality experiences on the web. You can create a 3D world for the browser using Babylon.js, then convert it into a Virtual Reality/Augmented Reality scene in a few lines of code. 

JING1201_6-1626977179515.png   JING1201_7-1626977179523.png

 

 

Azure Blob Storage: Microsoft cloud solution to easily deploy and serve our app/assets. Azure Blob Storage is designed to be an optimal solution for storing massive amounts of unstructured data, such as text or binary data, which makes it great for storing and sharing images or videos for distributed access. However, its Static Website feature also allows us to host a website in just two steps: (1) enabling the feature from Azure portal and (2) uploading the files to the storage container.  

 

JING1201_8-1626977179520.png    JING1201_9-1626977179521.png

 

As a developer, the coolest part is how Babylon offers a straightforward and efficient API that makes 3D and Extended Reality development trivial and close to traditional web development, while offering advanced features. Furthermore, WebXR offers such a great user experience since users don’t need to install anything to try/use a Virtual Reality/Augmented Reality app. Users simply need to open their browser, go to the site, and everything just works. This means that native app developers can also embed a web view and extend their app super quickly. 

 

Conclusion 

Using this set of technology, you can safely summon a pet dragon in your living room (or wherever you like). Whether it has been your dream to become a wizard, or the cool speech and extended reality technology just caught your attention, check out the Learn module for creating this app to get going on the journey of becoming a cool WebXR magician! 

 
The dragon 3D model used in this project, which is under the CC Attribution license, is created by RedCoreTimber and can be found on Sketchfab. 

Special thanks to Matt Aimonetti for his help in making this blog post and demo app come to life. 

%3CLINGO-SUB%20id%3D%22lingo-sub-2576559%22%20slang%3D%22en-US%22%3ESummoning%20a%20dragon%20in%20Mixed%20Reality%20using%20TypeScript%20and%20your%20voice%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2576559%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dragon-screenshot.png%22%20style%3D%22width%3A%20808px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297719iE083590F3F4E5CF5%2Fimage-dimensions%2F808x383%3Fv%3Dv2%22%20width%3D%22808%22%20height%3D%22383%22%20role%3D%22button%22%20title%3D%22dragon-screenshot.png%22%20alt%3D%22dragon-screenshot.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EDragons%20have%20been%20fascinating%20the%20world%20for%20centuries%2C%20we%20find%20them%20in%20the%20folklore%20of%20many%20cultures%20worldwide%20from%20Mesopotamian%20art%20and%20literature%20to%20nearly%20all%20Indo-European%2C%26nbsp%3BNear%20Eastern%2C%26nbsp%3Band%20of%20course%20the%20Chinese%20mythology.%20Wouldn't%20it%20be%20cool%20if%20we%20were%20able%20to%20(safely)%20summon%20our%20own%20dragon%20in%20the%20comfort%20of%20our%20home%3F%20Turns%20out%26nbsp%3Bit%26nbsp%3Bis%20possible%20and%20probably%20less%20complicated%20than%20you%20might%20think.%26nbsp%3BIn%20this%20article%2C%26nbsp%3Bwe%20will%20discuss%26nbsp%3Bthe%26nbsp%3Bhigh-level%26nbsp%3Bconcepts%20and%20technologies%26nbsp%3Bneeded%26nbsp%3Band%20I%20will%20share%26nbsp%3Ba%20demo%20for%20you%20to%20try%26nbsp%3Bin%20your%20browser%26nbsp%3B(best%20on%20mobile)%26nbsp%3Bor%26nbsp%3Byour%20Mixed%20Reality%20setup%20(Augmented%2FVirtual%20reality).%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%2C%20like%20me%2C%20you%26nbsp%3Btend%20to%26nbsp%3Bbe%26nbsp%3Ba%20little%20impatient%2C%20you%20can%20start%20the%20free%20%22%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fwebxr-summon-dragon%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20and%20deploy%20a%20voice%20activated%20WebXR%20app%20with%20Babylon.js%20and%20Azure%20Cognitive%20Services%3C%2FA%3E%22%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3ELearn%20Module%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20learn%20how%20to%20create%20this%20application%2C%26nbsp%3Bor%26nbsp%3Byou%20can%26nbsp%3Btry%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fwebxr-summon-dragon-demo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ebrowser%20demo%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B(click%20this%20link%20or%20scan%20the%20QR%20code%20below%20to%20open%20it%20on%20your%20phone)%20to%20get%20a%20feel%20of%20what%20you%20will%20be%20learning%20to%20make.%26nbsp%3B(Hint%3A%26nbsp%3BIn%20the%20demo%2C%20after%20you%20summon%20your%20dragon%2C%20try%20telling%20the%20dragon%20to%20%E2%80%9Cgo%20red%E2%80%9D%20or%20%E2%80%9Cgo%20blue%E2%80%9D%26nbsp%3B*wink%20wink*)%20If%20you%20are%20feeling%20adventurous%2C%20check%26nbsp%3Bout%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FJING1201%2Fwebxr-summon-dragon-demo%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Esource%20code%3C%2FA%3E%20of%20the%20demo%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_1-1626977179519.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297710i2B6A74C49AEF3C9F%2Fimage-dimensions%2F496x323%3Fv%3Dv2%22%20width%3D%22496%22%20height%3D%22323%22%20role%3D%22button%22%20title%3D%22JING1201_1-1626977179519.png%22%20alt%3D%22JING1201_1-1626977179519.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MicrosoftTeams-image.png%22%20style%3D%22width%3A%20186px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297721iD73DC7EF3299C91D%2Fimage-dimensions%2F186x367%3Fv%3Dv2%22%20width%3D%22186%22%20height%3D%22367%22%20role%3D%22button%22%20title%3D%22MicrosoftTeams-image.png%22%20alt%3D%22MicrosoftTeams-image.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dragon-qr-code.png%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297860iF5C6EEB98BD9F4D8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22dragon-qr-code.png%22%20alt%3D%22dragon-qr-code.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--407767919%22%20id%3D%22toc-hId--407767919%22%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EXR%20Basics%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335551550%26quot%3B%3A1%2C%26quot%3B335551620%26quot%3B%3A1%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ELet%E2%80%99s%20take%20a%20moment%20to%20talk%20about%20Extended%20Reality%20on%20the%20web.%20Mixed%2C%26nbsp%3BExtended%2C%20or%20Cross%26nbsp%3BReality%20(often%20abbreviated%20XR)%20is%20a%20term%20referring%20to%20the%20use%20of%26nbsp%3BVirtual%20Reality%26nbsp%3B(VR)%26nbsp%3Band%2For%26nbsp%3BAugmented%20Reality%26nbsp%3B(AR).%26nbsp%3BThe%20term%20Virtual%20Reality%20probably%20reminds%20you%20of%26nbsp%3Bheadsets%20that%20allow%20gamers%20to%20be%20fully%20immersed%20into%20the%20world%20of%26nbsp%3Bgames%26nbsp%3Bsuch%20as%20Beat%20Saber%20(which%20I%20am%20personally%20a%20huge%20fan%20of).%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EOn%20the%20other%20hand%2C%20Augmented%20Reality%20is%20a%20technology%20you%20probably%20have%20seen%20or%20even%20used%20many%20times%2C%20especially%20from%26nbsp%3Byour%20mobile%20phone.%20You%20could%20have%20been%26nbsp%3Breviewing%26nbsp%3Ba%20piece%20of%20furniture%20in%20your%20living%26nbsp%3Broom%20before%20ordering%20it%20online%2C%26nbsp%3Bplaying%26nbsp%3Bthe%20famous%26nbsp%3BPok%C3%A9mon%26nbsp%3BGo%20mobile%26nbsp%3Bgame%2C%20or%20even%20just%26nbsp%3Bapplying%26nbsp%3BTikTok%2FSnap%2FInstagram%20filters.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_2-1626977179526.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297711iC49096902585DE35%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_2-1626977179526.png%22%20alt%3D%22JING1201_2-1626977179526.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_3-1626977179528.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297714iF82904BD75068E13%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_3-1626977179528.png%22%20alt%3D%22JING1201_3-1626977179528.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2079744914%22%20id%3D%22toc-hId-2079744914%22%3E%3CSTRONG%3ELearn%20Module%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fwebxr-summon-dragon%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EThe%26nbsp%3BMicrosoft%20Learn%20Module%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3BI%20wrote%26nbsp%3Bwalks%20you%20through%20a%20concrete%20example%3A%20creating%20and%20deploying%20a%20voice%20activated%20web%20based%20mixed%20reality%20app%20using%20a%20JavaScript%20library%20called%20Babylon.js%20and%20a%20speech-to-text%20cloud%20service%20provided%20by%20Azure.%20The%26nbsp%3Btheoretical%26nbsp%3Buse%26nbsp%3Bcase%20explored%20in%20the%20Learn%20Module%20is%26nbsp%3Bshowcasing%20the%20interactivity%20of%20a%26nbsp%3Bfictitious%26nbsp%3Bnew%20amusement%20park%20attraction%26nbsp%3B(which%20could%20potentially%20be%20real).%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20short%2C%20the%20module%20will%20teach%20you%20how%20to%20code%20a%20web%20app%20that%20will%20listen%20for%20a%20vocal%20command%20and%20render%20a%20virtual%2C%20animated%20dragon%20that%20will%20float%20in%20the%20space%20in%20front%20of%20you.%20Finally%2C%20you%20will%20learn%20how%20to%20easily%20deploy%20such%20an%20app%20to%20preview%20it%20from%20the%20web%20(no%20app%20installation%20needed)%26nbsp%3Bfrom%20your%20mobile%20phone%2C%20headset%2C%20or%20even%20your%20desktop%2Flaptop%20browser%20(though%26nbsp%3Blosing%20the%20cool%20Augmented%20Reality%20effect).%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-272290451%22%20id%3D%22toc-hId-272290451%22%3E%3CSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ETech%20Concepts%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ETo%20summon%20a%20virtual%26nbsp%3Bdragon%26nbsp%3Bwe%20use%20four%26nbsp%3Bkey%20technologies%3A%26nbsp%3BSpeech-to-text%2C%26nbsp%3BWebXR%2C%20Babylon.js%2C%26nbsp%3Band%20Azure%20Blob%20storage.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESpeech-to-text%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3A%20the%20process%26nbsp%3Bof%26nbsp%3Btranscribing%26nbsp%3Bspoken%20audio%20to%20text.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20the%20Learn%20module%2C%20we%20use%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fcognitive-services%2Fspeech-to-text%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ea%26nbsp%3Bgreat%20cloud%20service%26nbsp%3Bprovided%20by%20Azure%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20be%20truly%20cross%20platform%2C%20accurate%2C%20and%20performant.%20For%20the%20linked%20demo%26nbsp%3Babove%2C%20we%26nbsp%3Bused%26nbsp%3Ban%20experimental%20browser%20API%26nbsp%3Billustrating%26nbsp%3Bthat%20using%20a%20cloud%20service%20is%26nbsp%3Bavoidable%2C%26nbsp%3Bbut%26nbsp%3Bsuch%20services%26nbsp%3Bwork%20much%20better%2C%20more%20accurately%2C%26nbsp%3Band%20across%20all%20platforms.%26nbsp%3BThis%20transcription%20is%20important%20when%20building%20experiences%20without%20a%20mouse%20and%20keyboard%2C%26nbsp%3Band%20the%20way%20for%20applications%20to%20understand%20the%20user's%20commands%2Fanswers%20is%20to%20convert%20the%26nbsp%3Baudio%20signal%20into%20text%20that%20your%20code%20can%20easily%20process.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_4-1626977179523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297713i79C5087E679EC79B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_4-1626977179523.png%22%20alt%3D%22JING1201_4-1626977179523.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWebXR%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Ba%26nbsp%3Blow%20level%26nbsp%3BExtended%20Reality%20web%20API%20available%20on%20all%20modern%20browsers.%26nbsp%3BAs%20described%20in%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FWebXR_Device_API%2FFundamentals%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EMDN%20entry%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3A%20%22WebXR%26nbsp%3Bis%20an%20API%20for%20web%20content%20and%20apps%20to%20use%20to%20interface%20with%20mixed%20reality%20hardware%20such%20as%20VR%20headsets%20and%20glasses%20with%20integrated%20augmented%20reality%20features.%20This%20includes%20both%20managing%20the%20process%20of%20rendering%20the%20views%20needed%20to%20simulate%20the%203D%20experience%20and%20the%20ability%20to%20sense%20the%20movement%20of%20the%20headset%20(or%20other%20motion-sensing%20gear)%20and%26nbsp%3Bproviding%26nbsp%3Bthe%20needed%20data%20to%20update%20the%20imagery%20shown%20to%20the%20user.%22%26nbsp%3BWebXR%2C%26nbsp%3Bhowever%2C%26nbsp%3Bis%20not%20a%20rendering%26nbsp%3Btechnology%2C%26nbsp%3Band%20most%20developers%20don't%20use%26nbsp%3BWebXR%26nbsp%3Bdirectly.%20They%20instead%20rely%20on%20higher-level%20rendering%20frameworks%20using%20WebGL%20or%26nbsp%3BWebGPU.%26nbsp%3BSo%26nbsp%3Bwhile%20this%20is%26nbsp%3Ba%20key%20technology%2C%20it%20is%20hidden%20behind%20the%20nice%20APIs%20provided%20by%20the%20rendering%20framework.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_5-1626977179514.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297712i9ED1E9EA115AA7AD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_5-1626977179514.png%22%20alt%3D%22JING1201_5-1626977179514.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.babylonjs.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EBabylon.js%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Ba%26nbsp%3Bfree%2C%20open%20source%2C%26nbsp%3Bhigh%20level%20JavaScript%26nbsp%3Brendering%2Fgame%20engine%20that%26nbsp%3Bcan%20leverage%26nbsp%3BWebXR%26nbsp%3Bto%20create%20great%20Extended%20Reality%20experiences%20on%20the%20web.%26nbsp%3BYou%20can%20create%20a%203D%20world%20for%20the%20browser%20using%20Babylon.js%2C%20then%20convert%20it%20into%20a%20Virtual%20Reality%2FAugmented%20Reality%20scene%20in%20a%20few%20lines%20of%20code.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_6-1626977179515.png%22%20style%3D%22width%3A%20458px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297715i205A8FC7CF85D0E6%2Fimage-dimensions%2F458x155%3Fv%3Dv2%22%20width%3D%22458%22%20height%3D%22155%22%20role%3D%22button%22%20title%3D%22JING1201_6-1626977179515.png%22%20alt%3D%22JING1201_6-1626977179515.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_7-1626977179523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297717i1C1B59F2E5ACD885%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_7-1626977179523.png%22%20alt%3D%22JING1201_7-1626977179523.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fstorage%2Fblobs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EAzure%26nbsp%3BBlob%20Storage%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3BMicrosoft%20cloud%20solution%20to%20easily%20deploy%20and%20serve%20our%26nbsp%3Bapp%2Fassets.%26nbsp%3BAzure%20Blob%20Storage%20is%20designed%20to%20be%20an%20optimal%20solution%20for%20storing%26nbsp%3Bmassive%20amounts%20of%20unstructured%20data%2C%20such%20as%20text%20or%20binary%20data%2C%20which%20makes%20it%26nbsp%3Bgreat%20for%20storing%20and%20sharing%20images%20or%20videos%20for%26nbsp%3Bdistributed%20access.%26nbsp%3BHowever%2C%20its%26nbsp%3BStatic%20Website%20feature%26nbsp%3Balso%26nbsp%3Ballows%20us%20to%20host%20a%20website%26nbsp%3Bin%26nbsp%3Bjust%26nbsp%3Btwo%20steps%3A%20(1)%20enabling%20the%20feature%20from%20Azure%20portal%20and%20(2)%26nbsp%3Buploading%20the%20files%20to%20the%20storage%20container.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_8-1626977179520.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297716iD86933543EF0A007%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JING1201_8-1626977179520.png%22%20alt%3D%22JING1201_8-1626977179520.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JING1201_9-1626977179521.png%22%20style%3D%22width%3A%20418px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297718i26F02BF9B34FD512%2Fimage-dimensions%2F418x296%3Fv%3Dv2%22%20width%3D%22418%22%20height%3D%22296%22%20role%3D%22button%22%20title%3D%22JING1201_9-1626977179521.png%22%20alt%3D%22JING1201_9-1626977179521.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EAs%20a%20developer%2C%20the%20coolest%26nbsp%3Bpart%20is%20how%20Babylon%26nbsp%3Boffers%20a%20straightforward%20and%20efficient%20API%20that%26nbsp%3Bmakes%203D%20and%20Extended%20Reality%20development%20trivial%20and%20close%20to%20traditional%20web%20development%2C%26nbsp%3Bwhile%20offering%26nbsp%3Badvanced%26nbsp%3Bfeatures.%26nbsp%3BFurthermore%2C%26nbsp%3BWebXR%26nbsp%3Boffers%20such%20a%20great%20user%20experience%20since%26nbsp%3Busers%26nbsp%3Bdon%E2%80%99t%20need%20to%20install%20anything%26nbsp%3Bto%20try%2Fuse%26nbsp%3Ba%20Virtual%20Reality%2FAugmented%20Reality%26nbsp%3Bapp.%20Users%20simply%20need%20to%20open%20their%20browser%2C%26nbsp%3Bgo%20to%20the%26nbsp%3Bsite%2C%26nbsp%3Band%20everything%20just%20works.%20This%20means%20that%26nbsp%3Bnative%20app%20developers%20can%26nbsp%3Balso%26nbsp%3Bembed%20a%20web%20view%20and%20extend%20their%20app%20super%20quickly.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1535164012%22%20id%3D%22toc-hId--1535164012%22%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EConclusion%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335551550%26quot%3B%3A1%2C%26quot%3B335551620%26quot%3B%3A1%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EUsing%20this%20set%20of%20technology%2C%20you%26nbsp%3Bcan%26nbsp%3Bsafely%26nbsp%3Bsummon%20a%20pet%20dragon%20in%20your%20living%20room%20(or%20wherever%20you%20like).%26nbsp%3BWhether%20it%20has%20been%20your%20dream%20to%20become%20a%26nbsp%3Bwizard%2C%26nbsp%3Bor%20the%20cool%26nbsp%3Bspeech%20and%20extended%20reality%26nbsp%3Btechnology%26nbsp%3Bjust%26nbsp%3Bcaught%20your%20attention%2C%20check%20out%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fwebxr-summon-dragon%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ethe%26nbsp%3BLearn%20module%20for%20creating%20this%20app%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20get%26nbsp%3Bgoing%26nbsp%3Bon%20the%20journey%20of%26nbsp%3Bbecoming%20a%20cool%26nbsp%3BWebXR%26nbsp%3Bmagician!%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CI%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThe%20dragon%203D%20model%20used%20in%20this%20project%2C%20which%20is%20under%20the%26nbsp%3B%3C%2FSPAN%3E%3C%2FI%3E%3CA%20href%3D%22https%3A%2F%2Fcreativecommons.org%2Flicenses%2Fby%2F4.0%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CI%3E%3CSPAN%20data-contrast%3D%22none%22%3ECC%20Attribution%20license%3C%2FSPAN%3E%3C%2FI%3E%3C%2FA%3E%3CI%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2C%20is%20created%20by%26nbsp%3BRedCoreTimber%26nbsp%3Band%20can%20be%20found%20on%26nbsp%3B%3C%2FSPAN%3E%3C%2FI%3E%3CA%20href%3D%22https%3A%2F%2Fsketchfab.com%2F3d-models%2Fdragon-flying-cycle-ae0831702eac462a9969ff4f8bd57710%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CI%3E%3CSPAN%20data-contrast%3D%22none%22%3ESketchfab%3C%2FSPAN%3E%3C%2FI%3E%3C%2FA%3E%3CI%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3C%2FI%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CI%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESpecial%20thanks%20to%20Matt%26nbsp%3BAimonetti%26nbsp%3Bfor%26nbsp%3Bhis%20help%20in%20making%20this%20blog%20post%20and%20demo%20app%20come%20to%20life.%3C%2FSPAN%3E%3C%2FI%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2576559%22%20slang%3D%22en-US%22%3E%3CP%3EFind%20out%20how%20to%20summon%20a%20dragon%20at%20home%20using%20Mixed%20Reality!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22dragon-screenshot.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297708iF36D399CDE2480B4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22dragon-screenshot.png%22%20alt%3D%22dragon-screenshot.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Jul 22 2021 03:12 PM
Updated by:
www.000webhost.com