GithubHelp home page GithubHelp logo

kennydude / photosphere Goto Github PK

View Code? Open in Web Editor NEW
217.0 36.0 62.0 1.54 MB

Photosphere -- THIS IS A PROOF OF CONCEPT. NO SUPPORT IS GIVEN

Home Page: http://kennydude.github.com/photosphere/test.html

Java 35.77% JavaScript 38.74% Shell 0.24% HTML 25.26%

photosphere's Introduction

IMPORTANT NOTICE:

THIS IS VERY OLD AND YOU SHOULD NOT USE THIS. NO RESPONSES TO EMAILS OR TICKETS WILL BE GIVEN FROM ME


PHOTOSPHERE

This allows you to view the new Photospheres in Android 4.2 without a problem without Google+

Thanks to

TO TEST

Open test.html and press "makeIt"

TO USE

Get Three.js (or use the bundled copy) and sphere.js and run:

new Photosphere("link-to-image.jpg").loadPhotosphere(document.getElementById("element-on-page"));

If you are including this into some gallery app which can read EXIF XMP tags, you can make it render faster (this is why you don't need every single shot for it to work, Android adds these tags in):

new Photosphere("link...").setEXIF({
	"full_width" : "GPano:FullPanoWidthPixels value",
	"full_height" : "GPano:FullPanoHeightPixels value",
	"crop_width" : "GPano:CroppedAreaImageWidthPixels value",
	"crop_height" : "GPano:CroppedAreaImageHeightPixels value",
	"x" : "GPano:CroppedAreaLeftPixels value",
	"y" : "GPano:CroppedAreaTopPixels value"
}).loadPhotosphere(...);

Tada! :D

LICENSE

GPLv3 http://www.tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)

HOW IT WORKS

  1. We load EXIF XMP data
  2. AJAX request as string
  3. Use Javascript string positioning to pull out the xmp chunk
  4. Pull out our attributes we need
  5. Create an image of full_width x full_height and put the linked image on at x, y with crop_width x crop_height.
  6. Load Three.JS using Panorma-like details (I used the Three.JS example for this and baked it into the class. I don't have a clue about 3D stuff nor am I really that interested)
  7. Boom!

photosphere's People

Contributors

kennydude 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

photosphere's Issues

Use this library with FlashCanvas

Hello,
I try using this with FlashCanvas because many browser does not supporting your library (Android, Safari on Mac, Mac Browsers, older IE...)!

Could you help my implenting this? I have set up a test page here: http://goo.gl/XGM3B. You could see the modified sphere.js here: http://goo.gl/NY3Sk.

Thanks very much for your help. I build a free community for photo spheres (also in English with android app)!

Issue on Stackoverflow: http://stackoverflow.com/questions/13541605/use-flashcanvas-with-three-js

Further development of Photosphere viewere

Hi kennydude & developers

Thanks for your great work! May I connect with you in order to discuss possible collaboration and funding for the further development of an independent Photosphere viewer? I am looking at the following enhancements and would like to hear your opinion on the viability of gettign these in place if you can focus on develpment. Perhaps we can Skype? My Skype Name is henriblom

Circumnavigate iOS non-support of WebGL
Add interactivity to the viewer, like going to external links from hotspots on the sphere image, or loading enhanced resolution views and next vantage point sphere perspective on zoom in

Thanks henkblom

Doesnt work on local machine

Hi,
I've downloaded the code, and tried to run it locally from my hard drive, but when I click on makeIt, nothing appears, what needs to be done to get it working (ideally I want to test my own image but I cant get your example to work).

Thanks

Error when rendering the panorama

Hi,

I'm trying to add the panorama to a website based on the example that you've provided.

Added all the files and the script to the page but I get an error when creating the panorama after clicking on the link. This is the error that I see in the console WebGL: INVALID_VALUE: texImage2D: width or height out of range

The image for the panorama is 2580 x 1594px. Is that too big or is there something else that causes this error?

Any help would be appreciated.

issue on panorama

hello ,
this demo working in web , but after downloading it is not working in my system

Auto-Rotate.

It's not really an issue. Just wondering how one could stop the auto-rotation that occurs in these. I see some things in the three.min.js file but thought I'd ask before I start changing stuff. :)

Black screen

Every image but your example gives me a black screen.

Why Android viewer not work ?

Right now if I tried to build Android version of the viewer. The program seems to run but when it try to display sphere, I got pink surface all around the display regardless of whatever sphere image used to test.

As the developer had stated that its not working, I'm not sure what kind of work needed to make it work. It would be nice if someone could enlighten me the details of what missing. It also may be good to the community for that someone may be able to solve and make it work.

Thanks

IE10: responseText does not work

Tried to run this in IE10 and I got errors when accessing responseText. From the watch window, it seems like responseText is set as some "SystemError" where as responseBody is valid (albeit a byte array).

I assume that IE fails to interpret the body (jpeg data) as a UTF-8 (or 16?) string, so body is valid and text is not. Switched the custom ajax implemtation in photosphere with a jquery ajax call and things started working better (i.e. now they work, previously they did not).

IE11, Firefox, Chrome, Safari on Mac were all ok.

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.