Skip to main content

What is A-Frame.io

What is aframe?? Before I get this I like to ask from you, Did you ever have to get a virtual reality? Someones are Yes! or Not!, Do you like to get that experience? So here it is.




A-Frame is a web framework for building virtual reality (VR) experience. This web frame is an open-source web framework that can develop many things. It is primarily maintained by Mozilla and WebVR community. But originally from Mozilla. A-Frame was developed to be an easy but powerful and easy way to develop VR content. As an open-source project, A-Frame has grown to be one of the largest and most welcoming VR communities.

A-Frame is based on top of HTML, simple to get started. But A-Frame is not just a 3D scene graph or markup language. It is an entity-component system framework for three.js where developers can create 3D WebVR scenes using HTML.

Nowadays HTML provides a familiar tool for web developers and designers while incorporating a popular game development pattern used by Game engines such as UnityBlender

A-Frame supports most VR headsets such as Rift, Vive, Windows Mixed Reality, Daydream, Cardboard, GearVR and can even be used for augmented reality. 

Although A-Frame supports the whole spectrum A-frame aims to define fully immersive interactive VR experience that goes beyond 360º content, making full use of positional tracking and controllers.

History
As I mentioned before A-Frame was developed by the Mozilla VR team during mid-to-late 2015. A-Frame crew was Deigo Marcos, Josh Carpenter, Casey Yee, Chris Van Wiemeersch and Kevin Ngo. A-Frame's public release was on December 16, 2015.

Benefits 
1. 3D and VR content authoring with HTML without build steps.
2. Visual inspector tool that can be invoked in the browser from any live A-Frame scene.
3. Compatibility with most existing web libraries and frameworks (React JsAngular JsD3.jsVue.js).
4. Setup of the scene with one line of HTML (<a-scene>) to handle canvas renderer, render logo, lights, controls, WebVR setup.

Now the interesting part begins here!


Getting Started 
A-Frame can be developed from a plain HTML file without having to install anything. There is a great way to try online code editor, that instantly hosts and deploys for free (try it now) and also you can download it on GitHub.  

The installation page provides more options for getting started with A-Frame.

To get started learning A-Frame, check out A-Frame School for visual setup-by-setup lessons to complete documentation.  

First, create a .html file and include A-Frame in the <head>


Here are some examples, 

1. Hello WebVR Code
<html>
  
<head>
    
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
  
</head>
  
<body>
    
<a-scene>
      
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
      
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
      
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D">
     </a-cylinder>
      <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4 </a-plane>
      
<a-sky color="#ECECEC"></a-sky>
    
</a-scene>
  
</body>
</html>

Hello WebVR code with Preview 


A-Frame tutorial, Hello WebVR

2. Shopping

There is another example, it is called Shopping.




and short video, 


Here is the code to Shopping,

 Some pictures of it,


figure 1

figure 2

Features of A-Frame

1. VR Made Simple

Just drop in a <script> tag and <a-scene>. A-Frame will handle 3D boilerplate VR setup and default controls. Nothing to install, no build setups.

2. Declarative HTML

HTML is easy to read, understand and copy-and-past. Being based on top of HTML, A-Frame is accessible to everyone, such as web developers, VR enthusiasts, artists, designers, educators, etc.

3. Cross-Platform VR

Build VR applications for Vive, Rift, Windows Mixed Reality, Daydream, Gear VR and Cardboard with support for all respective controls. Don't have a headset or controls? don't worry it is work on standard desktop and smartphones.

4. Entity-Component Architecture  

A-Frame is a powerful three.js framework, providing a declarative, composable, reusable entity-component structure. HTML is just the tip of the iceberg; developers have unlimited access to JavaScript, DOM APIs, three.js, WebVR, and WebGL.

5. Performance

A-Frame is optimized from the ground up for WebVR. While A-Frame uses the DOM, it's elements don't touch the browser layout engine. 3D object updates are all done in memory with little overhead under a single requestAnimationFrame call. For reference, see A-Painter, a Tilt Brush clone built in A-Frame that runs like a native(90+FPS).

6. Tool Agnostic

Since the web was built on the notation of HTML, A-Frame is compatible with most libraries, frameworks, and tools including React, Preact, Vue.js, d3.js, Ember.js, jQuery.

7. Visual Inspector

A-frame provides a built-in visual 3D inspector. Open up any A-Frame scene, and hit <ctrl>+<alt>+i

8. Components

Hit the ground running with A-Frame's core components such as geometries, materials, lights, animations, models, ray casters, shadows, positional audio, text, and Vive | Touch | Windows Motion, etc.

For more details refer to A-Frame.
~Randika Madhushan


Comments

Popular posts from this blog

SDLC (System Development Life Cycle)

මේ SDLC කියන්නේ මචන් cook book එකක් !! ඒ කියන්නේ හරියට manual guide book එකක් වගේ සීන් එකක් හැබැයි ඔව් cook book එකක් කියන්නේ කෑම වට්ටෝරු පොතක් නේ. දැන් මෙහෙම හිතපන් උබට ඕනේ වෙනවා පරිපුවක් හදා ගන්න. නැ ඒ පරිප්පු නෙමේ කන පරිප්පු. මේ පරිප්පු වේ recipe එක විදිහට තමා අපි හදන්නේ ඒ කියන්නේ 2 කුට නම්  ලුණු තේ හැදී භාගයයි, පරිප්පු කොප්පයි, මිරිස් කරල් 2 යි කහ තේ හැදී කාලයි ඇයි ඒ?  අපිට ලුණු මේස හැන්දක් මිරිස් කරල් 10 විතර ගන්න තහනම්ද? නැ මචන් තහනම් නැ හැබෙයි එහෙම හදපල්ලා කාගෙවත් බාධාවක් නෑ. මේකයි මචන් අපිට කලින් පරම්පරාවේ මිනිස්සු මෙන්න මේ පරිප්පුව හදන විදිහ වැරදිලා වැරදිලා වැරදිලා ක්‍රමවේදයක් හොයාගෙන තියෙනවා හෝ හෙවිලා තියෙනවා අපිට වඩාත් හොදින් කොලිටියට පරිප්පුව හදාගන්න :O ඉතින් මේ SDLC පරිප්පුව  "මෘදුකාංග වැඩිදියුණු කිරීමේ ජීවන චක්‍රයක්". ඒ කියන්නේ හැමදාම පරිප්පුව හදනවා ඉවර වෙන්නේ නෑ. හරියට සංසාර චක්රේ වගේ. මෘදුකාංග ජීවන චක්‍රය ඉවර වෙන්නේ නෑ කියන්නේ බන්ස්, අපේ සංසාර ච්ක්රේ  ඉපදෙනවා, හොද නරක කරනවා, මැරෙනවා, ආය ඉපදෙනවා, හොද නරක කරනවා,මැරෙනවා, අයේ ඇති ඇත...

Dark Web

                                    Dark Web කොහොමද යාලුවනේ, අද මම කතාකරන්න යන්නෙ ගොඩක් දෙනෙක්   වැඩිය දැනුවත් නැති ,ඒ වුනාට අපි අනිවාරෙන්ම දැනගත යුතු   මාතෘකාවක්   ගැන. ඉතින් අපි බලමු මොකක්ද ඒ කියලා. මොකක්ද මේ  Dark web කියලා කියන්නෙ....  D ark web කියන්නෙ අන්තර්ජාලයේම කොටසක් නමුත් dark web කියන එක අපිට search engine එකක් හරහා බලාගන්න බැහැ.ඒ සදහා අපිට anonymizing browser එකක් භාවිතා කරන්න වෙනවා.එහෙම භාවිතා කරන browser එකක් තමයි Tor කියන්නෙ. dark මේක  ගොඩක් භාවිත වෙන්නෙ criminal activity වලට ඒ නිසාම hotbed of criminal activity කියලත් මේ dark web එක හදුන්වනවා.   ක්‍රෙඩිට් කාඩ් අංක , සියලු ආකාරයේ මත්ද්‍රව්‍ය , තුවක්කු , ව්‍යාජ මුදල් , අනවසරයෙන් නෙට්ෆ්ලික්ස් ගිණුම්   වලට සහ වෙනත් පුද්ගලයින්ගේ පරිගණකවලට ඇතුළු වීමට උදව් වන මෘදුකාංග මිලදී ගැනීම ,පරිගණකවලට පහර දීමට හැකර්වරුන් කුලියට ගැනීම,   පරිශීලක නාම සහ මුරපද ම...