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:
- WASD controls forward and backward.
- Rotate the head = The Real World.
- 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.