0.1.3 • Published 2 years ago

aframe-stereo-cylinder v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Aframe stereoscopic cylinder

The library plays processed images using stereoscopic in the aframe cylinder.

no stereoscopic

yes stereoscopic

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

A-frame's cylinder attributes

2022.10.31

Update export function stereoCylinder. Call this function absolute path.

// absolute path
stereoCylinder();

like this.

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago