Can AR be implemented through H5? Not through APP-

Source: Internet
Author: User
Tags install node
0 reply content: Yes, divided into two parts
1. Camera input and visual analysis, via javasrit/jsfeat GitHub
2. WebGL 3D rendering and Model Animation, via mrdoob/three. js · GitHub

The limitation is that browsers on mobile phones do not support cameras, so you have to wait.

Js-sdk can get a single photo, but cannot get continuous camera videos, which means real-time AR cannot be implemented.

If you are interested, you can follow the hacker and painter-zhihu column to see Liang Fengtai's AR platform. Although the technology was obtained more than a decade ago and made it into an API, people still spent some time. (I have never used it. I don't know how to create a VR world by embedding Oculus + Node. js + Three. js. | VR first news VR013

After trying to build a development environment for one night, I gave up the idea of developing native applications. First, you do not have your own computer (if Raspberry Pi II is not counted)-No Windows, no GNU/Linux, or Mac OS. For Embedded Development and game development, Mac OS is simply a Windows Phone in mobile phones, such as LLVM, GCC (Mac OS), OpenGL, OGLPlus, and C ++ 11. In addition, the official support for Mac OS and Linux sdks has lagged behind for several centuries.

After all, it is easier to build a Web development environment. The repo is as follows:

Effect:

  1. WASD controls forward and backward.
  2. Rotate the head = The Real World.
  3. Additional effect: dizzy after a long time.

Now, let's start building.

Node Oculus Services

Here, all we need to do is to return the elements Quaternions and Euler angles returned by the sensor to the front end in the form of an API.

Install Node NMD

On Node. js, there is an Oculus plug-in named node-hmd, which is oriented to head-mounted displays. It is the Node interface of the Oculus SDK. Although it has been a long time ago, it seems that it can be used. The official sdks for Mac OS and Linux have not been updated for a long time.

In the GNU/Linux system, you need to install the following

freeglut3-devmesa-common-devlibudev-devlibxext-devlibxinerama-devlibxrandr-devlibxxf86vm-dev
There are demos, but there are limitations. You are welcome to study three. js together.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.