A-Frame (virtual reality framework)

A-Frame
Original author(s) Mozilla
Developer(s) A-Frame Authors
Initial release December 2015 (2015-12)
Stable release
0.6.1 / July 19, 2017 (2017-07-19)
Development status Active
Written in JavaScript
Platform Cross-platform
Type JavaScript framework
License MIT License
Website aframe.io

A-Frame is an open-source web framework for building virtual reality (VR) experiences.[1] It is primarily maintained by Mozilla and the WebVR community. It is an entity component system framework for Three.js where developers can create 3D and WebVR scenes using HTML. HTML provides a familiar authoring tool for web developers and designers while incorporating a popular game development pattern used by engines such as Unity.

History

A-Frame was developed within the Mozilla VR team during mid-to-late 2015.[2] The Mozilla VR team pioneered the WebVR platform and spec, but needed an easier way to create content. The original work behind A-Frame involved Diego Marcos, Josh Carpenter, Casey Yee, Chris Van Wiemeersch, and Kevin Ngo. A-Frame was created in order to allow web developers and designers to author 3D and VR experiences[3] with HTML without having to know WebGL.[4] A-Frame's first public release was on December 16, 2015.[5] There are now over 75 contributors in total.[6]

Benefits

Usage

An entire A-Frame scene can be contained within a HTML file by including a single JavaScript file.

A-Frame hello world on the Glitch platform, no installation required to have live reloading and published on all WebVR platform via a simple link
 1 <html>
 2   <head>
 3     <title>Hello, World!</title>
 4     <script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
 5   </head>
 6   <body>
 7     <a-scene>
 8       <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
 9       <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
10       <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
11       <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
12       <a-sky color="#ECECEC"></a-sky>
13     </a-scene>
14   </body>
15 </html>

Since A-Frame is based on an Entity component system pattern, under the hood, every object in a scene is an entity. Entities are general placeholder objects. Components are composable and reusable modules that can be plugged into entities in order to add appearance, behavior, and functionality. Components are written in JavaScript and can be made to do anything, and then expose a declarative API through HTML. Here is an example of including a couple of community components for particle systems and physics via external scripts, and then being used from HTML.

 1 <script src="https://unpkg.com/aframe-particle-system-component/"></script>
 2 <script src="https://unpkg.com/aframe-physics-system/"></script>
 3 
 4 <a-entity
 5   geometry="primitive: box"
 6   material="color: red; metalness: 0.5"
 7   dynamic-body="mass: 5"
 8   light="type: point; intensity: 1.1"
 9   particle-system
10 ></a-entity>

Selected Uses and Works

A-Frame is being used for a variety of applications and purposes. The following lists identify selected uses and works.

Community

All online IDEs support A-Frame as a result of being based on HTML. Documentation is available for the API.[20] Support for developers committing to the library is provided via GitHub issues, while support for developers building apps and web pages is provided via StackOverflow.[21] Real-time on-line support is provided using Slack (software).[22] Most of the developers are also on Twitter.

See also

References

  1. "A-Frame". A-Frame. Retrieved 2016-10-25.
  2. "Introducing A-Frame: Building Blocks for WebVR". Mozilla VR Blog. 2015-12-16. Retrieved 2016-10-26.
  3. Lang, Ben (2015-12-16). "Mozilla A-Frame: WebVR Starting With One Line of Code". Road to VR. Retrieved 2016-10-25.
  4. "Mozilla makes it easy to create VR websites with 'A-Frame'". Engadget. Retrieved 2016-10-25.
  5. "Mozilla Releases A-Frame WebVR Framework". AR VR Magazine. 2015-12-18. Retrieved 2016-10-25.
  6. "aframevr/aframe". GitHub. Retrieved 2016-10-25.
  7. "A-Frame". A-Frame. Retrieved 2016-10-25.
  8. "A-Frame". A-Frame. Retrieved 2016-10-25.
  9. "aframevr/awesome-aframe". GitHub. Retrieved 2016-10-25.
  10. "A-Frame Registry". aframe.io. Retrieved 2016-10-25.
  11. "aframevr/aframe-inspector". GitHub. Retrieved 2016-10-25.
  12. "Fear of the Sky". Fear of the Sky. Retrieved 2016-10-25.
  13. "Mars: A virtual reality tour of the Red Planet". Washington Post. Retrieved 2016-10-25.
  14. "iStaging LiveTour". vrviewer.istaging.co. Retrieved 2016-10-25.
  15. "A-Painter: Paint in VR in Your Browser". Mozilla VR Blog. 2016-09-19. Retrieved 2016-10-25.
  16. "shopifyvr". shopifyvr. Retrieved 2016-10-25.
  17. "How we built a VR project using web technologies | NPR Visuals". blog.apps.npr.org. Retrieved 2016-10-27.
  18. "Stand At The Edge Of Geologic Time". NPR.org. Retrieved 2016-10-25.
  19. "GuriVR". gurivr.com. Retrieved 2016-10-25.
  20. "Redirecting...". aframe.io. Retrieved 2016-10-25.
  21. "Newest 'aframe' Questions". stackoverflow.com. Retrieved 2016-10-25.
  22. Slack. "Slack". aframe.io. Retrieved 2016-10-25.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.