All Projects → ChiChou → Vue Pano

ChiChou / Vue Pano

A WebGL driven panorama vue.js component

Labels

Projects that are alternatives of or similar to Vue Pano

Cga.js
CGA 3D 计算几何算法库 | 3D Compute Geometry Algorithm Library webgl three.js babylon.js等任何库都可以使用
Stars: ✭ 313 (-7.12%)
Mutual labels:  webgl
Eternal
👾~ music, eternal ~ 👾
Stars: ✭ 323 (-4.15%)
Mutual labels:  webgl
Html Gl
Get as many FPS as you need and amazing effects by rendering HTML/CSS in WebGL
Stars: ✭ 3,391 (+906.23%)
Mutual labels:  webgl
React Postprocessing
📬 postprocessing for react-three-fiber
Stars: ✭ 311 (-7.72%)
Mutual labels:  webgl
Geojs
High-performance visualization and interactive data exploration of scientific and geospatial location aware datasets
Stars: ✭ 323 (-4.15%)
Mutual labels:  webgl
Audiofabric
a 3d music visualization
Stars: ✭ 327 (-2.97%)
Mutual labels:  webgl
Pix Plot
A WebGL viewer for UMAP or TSNE-clustered images
Stars: ✭ 306 (-9.2%)
Mutual labels:  webgl
Car Simulator
Autonomous car simulator (based on JavaScript & WebGL) implemented by fuzzy control system, genetic algorithm and particle swarm optimization.
Stars: ✭ 335 (-0.59%)
Mutual labels:  webgl
Spoke
Easily create custom 3D environments
Stars: ✭ 321 (-4.75%)
Mutual labels:  webgl
Three Elements
Web Components-powered custom HTML elements for building Three.js-powered games and interactive experiences. 🎉
Stars: ✭ 331 (-1.78%)
Mutual labels:  webgl
Xeokit Sdk
Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
Stars: ✭ 316 (-6.23%)
Mutual labels:  webgl
Glow
GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Stars: ✭ 316 (-6.23%)
Mutual labels:  webgl
Vivagraphjs
Graph drawing library for JavaScript
Stars: ✭ 3,442 (+921.36%)
Mutual labels:  webgl
Online3dviewer
Online 3D Model Viewer
Stars: ✭ 312 (-7.42%)
Mutual labels:  webgl
Mars3d
Mars3D三维地球平台软件 主仓库,包含示例及引导
Stars: ✭ 332 (-1.48%)
Mutual labels:  webgl
Webclgl
GPGPU Javascript library 🐸
Stars: ✭ 313 (-7.12%)
Mutual labels:  webgl
Clubber
Application of music theory in audio reactive visualizations
Stars: ✭ 325 (-3.56%)
Mutual labels:  webgl
Magnum
Lightweight and modular C++11 graphics middleware for games and data visualization
Stars: ✭ 3,728 (+1006.23%)
Mutual labels:  webgl
Xi Electron
A front-end for the xi-editor built with modern web technologies.
Stars: ✭ 333 (-1.19%)
Mutual labels:  webgl
Melonjs
a fresh & lightweight javascript game engine
Stars: ✭ 3,721 (+1004.15%)
Mutual labels:  webgl

vue-pano

Looking for maintainers

npm version

中文文档

WebGL panorama component for vue.js

Screenshot

Click this link or scan the QRCode on your mobile devices to see the demo:

qrcode

Usage

The Component

Use npm or yarn to add vue-pano to your dependency. Following vue snippet intruduces the component to your view:

<script>
import Pano from 'vue-pano'

...

export default {
  components: { Pano }
}
</script>
<template>
  <pano title="The Title" width="720" height="480" bundle="example/assets/pano/pantry/" format="jpg"></pano>
</template>

Use these props to define the texture and size:

  • width, height: the size of the component
  • title: the title
  • bundle: base path for the six textures
  • format: extension of the texture images, like jpg
  • debug: boolean, is debugging

Currently I don't support higher customization or events handling, if you need so, feel free to issue that.

Preparing the image

You can use PhotoSphere App from Google to take a panorama with a smartphone (both Android and iOS)! Since it results in a equirectangular projection skysphere image (only one rectangular), and the vue-pano only supports the skybox format (six squares), you need to convert the image using this tiny tool I wrote: glskybox.

texture

If you are not satisified with the camera on mobile, or you need to take the picture indoor, you can follow the instruction here (in Chinese) about how to use the full frame camera with a wide angle lens, and compose these pictures into a panorama with Microsoft ICE.

Here are some image stitching tool you can use to compsoe the panorama picture:

  • Microsoft ICE (Free, Windows only)
  • ppwwyyxx/OpenPano (Open source, cross platform)
  • PTGui (Paid, for Mac OSX and Windows)
  • Hugin (Open source, cross platform)
  • Auto Stitch (Offers both community version and professional version, supports Mac OSX and Windows)

The demo texture can be found under example/assets/pano directory.

Contributing

If you want to contribute to the project, clone this repo adn run following commands for hosting a development server, or build for production.

# install dependencies
yarn

# serve with hot reload at localhost:8080
yarn run dev

# build for production with minification
yarn run build

TODO

  • [ ] json bundle
  • [ ] low quality preview background
  • [ ] image progress bar

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].