• This repository has been archived on 22/Sep/2024
  • Stars
    star
    471
  • Rank 93,216 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A framework for building VR applications with Vue

License npm version HitCount size

Vue VR

A Wrapper of Panolens for building VR applications with Vue based on threejs

Demos

Image Pano

Cube Pano

Video Pano

360 Video Demo

VR Tour

VR Tour

Getting started

using npm

npm install vuejs-vr --save

Or using script tag for global use

<script src="https://unpkg.com/vuejs-vr@latest/dist/vue-vr.min.js"></script>

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <Pano source="pano.jpg"></Pano>
    </div>
    <script src="vue.js"></script>
    <script src="vuejs-vr.js"></script>
    <script>
        new Vue({
            el: '#app'
        })
    </script>
</body>

####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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <Pano type='cube' source="pano_%s.jpg"></Pano>
    </div>
    <script src="vue.js"></script>
    <script src="vuejs-vr.js"></script>
    <script>
        new Vue({
            el: '#app'
        })
    </script>
</body>

####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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <Pano type='video' source="video.mp4"></Pano>
    </div>
    <script src="vue.js"></script>
    <script src="vuejs-vr.js"></script>
    <script>
        new Vue({
            el: '#app'
        })
    </script>
</body>

TODO List

  • Hotspots
  • Multi touch on touchsceen devices
  • 3D objects
  • HlS, Live Streaming video Support

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

More Repositories

1

indoorjs

Indoor mapping for floorplans using on fabricjs
JavaScript
134
star
2

magic-scroll

Apple Magic Mouse scrolling effect for normal mouses
HTML
43
star
3

vue-global-var

Reactive global variable can be sharable between components
JavaScript
22
star
4

awesome-iview

A curated list of iView (A high quality UI Toolkit built on Vue.js 2.0) resources and related projects. The main idea is that everyone can contribute here, so we can have a central repository of informations about iView that we keep up-to-date https://iviewui.com/
19
star
5

vue-panorama

Panorama viewer for your homepage
Vue
19
star
6

vue2-leaflet-rotatedmarker

rotated marker plugin extension for vue2-leaflet package
Vue
19
star
7

vue-indoor

VueJS wrapper for indoorjs
Vue
14
star
8

Leaflet.AxesGrid

Axes Lines and Grid for Grid Layer and tiles based on point coords
JavaScript
11
star
9

vue2-leaflet-path-transform

rotated marker plugin extension for vue2-leaflet package
Vue
11
star
10

leetcode

Leetcode solutions in python
Python
9
star
11

vue-fabric

Vuejs + Fabricjs
JavaScript
8
star
12

vue2-leaflet-axesgrid

Axes Grid for vue2-leaflet
Vue
8
star
13

vue-vr-demo

Vue VR demo
Vue
3
star
14

vue-leon

Vue wrapper for leonsans - Leon Sans is a geometric sans-serif typeface made with code in 2019 by Jongmin Kim.
JavaScript
3
star
15

react-antd-starter

React Antd Starter: craco + antd custom theme + airbnb eslint
JavaScript
3
star
16

vue-quicklink

Google's quicklink library for vue
2
star
17

mudin.github.io

HTML
2
star
18

vue-reactive

This library helps you to access global variables between nested components
2
star
19

words

Random English words display with translation on macOS, Windows and Web
Vue
1
star
20

words-extension

English Uzbek random New Tab Words List chrome extension
JavaScript
1
star
21

three-nebula-multiple-emitters

JavaScript
1
star
22

EleAdmin

EleAdmin
Vue
1
star
23

mytube

Video Sharing site template with element-ui and videojs
Vue
1
star