A-frame_02

    A-Frame 让我们能够仅仅通过几行HTML代码创建出可以运行在桌面, 虚拟眼镜, 以及手机上的VR场景. 而且因为这个框架是基于HTML的, 我们也可以像一般的HTML元素一样配合JavaScript进行使用, 当然我们也可以继续使用其他我们喜欢的JavaScript类库和些框架(比如: d3, React).

    But the key factor is that A-Frame introduces the entity-component-system pattern, a pattern commonly used in 3D and game development, to HTML for composability, extensibility, and flexibility. If we are to bring 3D to the web, we need to adopt existing patterns from the industry. The scene in the example above actually uses convenience elements; at A-Frame’s core, it translates to:

    但是最主要特点是A-Frame主张 实体-组件-系统样式(一个主要用在3D和游戏开发的样式): entity-component-system pattern

 

结果如下:

 

posted @ 2016-06-30 15:12  时空矩人  阅读(130)  评论(0编辑  收藏  举报