aframe-observer-component
An Observer component for a camera in an A-frame scene.
Attach a view from a camera to a canvas external of the A-frame scene.
Loosely based on this example.
For A-Frame.
API
Property | Description | Default Value |
---|---|---|
canvas | selector of the HTML element where the canvas with the camera view is going to be attached | '' |
fps | desired FPS of observer display | 30.0 |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-observer-component
Then require and use.
;;