Axis is a panoramic rendering engine built for the Littlstar Player. It supports the rendering of equirectangular, cylindrical, and panoramic textures. It can playback spherical videos and render panoramic images. It also supports stacked video produced from the VSN Mobile V.360 video camera. Axis has support for rendering multiple projections such as Stereoscopic (Oculus), Tiny Planet and Fisheye.
Stable (DEPRECATED) - See https://github.com/littlstar/axis3d
Axis can be built and installed in various ways.
Axis is available through npm
$ npm install @littlstar/axis --save
Axis uses browserify internally for installing and building its dependency components.
$ git clone git@github.com:littlstar/axis.git
$ cd axis
$ make
Distribution builds are now available in the dist/
directory.
Debug builds are now available in the build/
directory.
For an interactive example, make example
and navigate to http://localhost:9966/ in your browser =)
const { createAxisFrame } = requre('@littlstar/axis')
const domElement = document.querySelector('#video');
const frame = createAxisFrame(domElement, {
src: '/path/to/video.mp4'
});
frame.once('ready', () => {
frame.seek(5)
frame.play()
frame.projection('tiny planet')
frame.rotate('y', {
value: 0.002,
every: 500
});
});
Axis is currently in use in production on the Littlstar web platform.
MIT