aframe-passthrough
Shows webcam or phone camera video feed inside an A-Frame Web-VR environment.
Installation
Requires Aframe >= 0.3.0
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-passthrough-component
Then register and use.
;;
Notes
The passthrough component will show the camera feed from a webcam when viewed on a desktop, and will attempt to use the back-facing camera when viewed on a mobile device.
Roadmap
Cool additions would be:
- Camera selector: to select between front and back facing cameras on mobile
- Mirror attribute: to flip the view to mirrored