aframe-stereo-cylinder
v0.1.3
Published
The library plays processed images using stereoscopic in the aframe cylinder.
Downloads
2
Readme
Aframe stereoscopic cylinder
The library plays processed images using stereoscopic in the aframe cylinder.
how to use
<a-scene>
<a-camera reverseMouseDrag position="0 0 0.2"></a-camera>
<a-assets>
{' '}
// Put in the video you want.
<video id="video" src="./maryoculus.mp4" autoplay loop></video>
</a-assets>
<a-cylinder // After making cylinder with aframe, put stereo-cylinder in attribute
stereo-cylinder="deg: 150; scale:-1,1,1; eye: left"
side="front"
src="#video"
/>
</a-scene>
schema: {
eye: { default: 'left', oneOf: ['left', 'right'] },
deg: { type: 'number', default: '180' },
scale: { type: 'string', default: '-1,1,1' },
},
this is schema props.
for example, if you write stereo-cylinder="deg: 120;" Then you're going to make a cylinder with an angle of 120 degrees.
and use the various attributes of A-frame's cylinder
2022.10.31
Update export function stereoCylinder. Call this function absolute path.
// absolute path
stereoCylinder();
like this.