Giter VIP home page Giter VIP logo

stereo-panorama-viewer's Introduction

stereo-panorama-viewer

Netlify Status

A red pond with some UI overlaid

View stereoscopic panoramas in your browser!

usage

format

Only "stacked" panoramas are supported. A "stacked" panorama is composed of two equirectangular-panoramas one on top of the other.

Two sources are:

query parameters

url

Should contain a direct link to a panorama.

Example:

https://spano.pyrik.dev/?url=https%3A%2F%2Fi.imgur.com%2FPgAHSy8.jpg

embedded

If the querystring contains embedded, then all UI will be hidden except for the "Enter VR" button.

Example:

https://spano.pyrik.dev/?embedded=&url=https%3A%2F%2Fi.imgur.com%2FPgAHSy8.jpg

local development

Install the dependencies...

cd stereo-panorama-viewer
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see the app running.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

building

To create an optimised version of the app:

npm run build

deployment

stereo-panorama-viewer automatically deploys to Netlify every time a commit is pushed to the master branch.

notes

  • This repo used to be called "overunder-aframe". It has been renamed to be more descriptive and to refocus on a core feature: displaying stereo panoramas.

references

  • The logo/favicon uses the photo.svg tabler-icon.

stereo-panorama-viewer's People

Contributors

bryik avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stereo-panorama-viewer's Issues

Loading image by selector broken in A-Frame 6

Hi Ben, thanks for this component. In A-Frame 6.x loading the images by selector doesn't work anymore. Example:

This works:
<a-entity overunder="../assets/witness_painter.jpg"></a-entity>

This doesn't work:
<a-assets> <img id="witness" src="../assets/witness_painter.jpg"> </a-assets> <a-entity overunder="#witness"></a-entity>

My temporary workaround is to change this line
var texture = new THREE.TextureLoader().load( this.data );
to this
var texture = new THREE.TextureLoader().load(this.data.getAttribute('src'));
but this breaks the loading by URL part.

Do you have any idea how to fix this? I'm still new to A-Frame.

Add loading indicator

In the cardboard-reddit example changing to the next image makes the scene awkwardly freeze for a few seconds.

Remote viewer does not work with Firefox

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://imgur.com/xLc3Kj7. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

For example.

This error does not occur with Chrome or Edge.

Something broken related to mobile sensor

Other A-frame examples I tried are running great but this has a very "shaky" camera. Seems that my movements with mobile phone are somehow exagerated, too sensitive.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.