Vue VR
A Wrapper of Panolens for building VR applications with Vue based on threejs
Demos
Getting started
using npm
npm install vuejs-vr --save
Or using script tag for global use
Or Download vue-vr.min.js and include it in your html
Installing & Running Locally
Clone the repository using git:
git clone https://github.com/mudin/vue-vr.git
Installing all dependencies:
npm install
Build by webpack:
npm run-script build
Run locally:
npm start
This will start development server on localhost:8080
Usage
For simple panorama:
Panorama by equirectangular image
<template> <Pano source="pano.jpg"></Pano></template><script> import { Pano } from 'vuejs-vr' export default { components: { Pano } }</script>
Or
For cube faces:
Panorama with a six-face cubemap
<template> <Pano type='cube' source="pano_%s.jpg"></Pano></template><script> import { Pano } from 'vuejs-vr' export default { components: { Pano } }</script>
Note: %s
replaced by 'l'|'f'|'r'|'b'|'u'|'d'
Or
360 video:
Panorama with 360 video
<template> <Pano type='video' source="video.mp4"></Pano></template><script> import { Pano } from 'vuejs-vr' export default { components: { Pano } }</script>
Or
TODO List
- Hotspots
- 3D objects
Contributing
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.
LICENSE
MIT