• Stars
    star
    218
  • Rank 181,805 (Top 4 %)
  • Language
    JavaScript
  • Created about 12 years ago
  • Updated about 9 years ago

Reviews

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

Repository Details

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

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!

More Repositories

1

zxing-lib

NOT MAINTAINED -- Android ZXing Library. Embeddable in apps really easily
Java
83
star
2

AndroidAdditions

Chrome extension for additional documentation on http://developer.android.com
JavaScript
14
star
3

Speaker

Announces things for Android
Java
7
star
4

dashclock

DashClock modifications
Java
6
star
5

Wallet

A wallet for your cards and various things for android
Java
5
star
6

transtimetable

Android Transit Timetable App!
Java
5
star
7

CCDownloader

Download from Creative Cloud Libraries
JavaScript
5
star
8

tumblr-backup

[deprecated] backup tumblr
JavaScript
4
star
9

AwesomePrefs

Android Preferences Rewrite
Java
4
star
10

SimpleMC

Simple Media Centre. (ALPHA)
JavaScript
3
star
11

tumblr-client

My tumblr client
PHP
3
star
12

Minecraft

kennydude's Minecraft Modification
Java
2
star
13

mycloud

mycloud
PHP
2
star
14

Search-Engine

@kennydude's search engine!
Python
2
star
15

Sorbet

CMS in PHP. Will be in use for my own website
PHP
2
star
16

Boid-Twitter-API

Aidan's custom Twitter API library for Java, implemented in Boid for Twitter.
Java
2
star
17

mctrakt

Trakt for Android application
Java
2
star
18

swifttext

Open sourcing this little thing :)
Java
2
star
19

kennydude.github.com

My personal site
JavaScript
2
star
20

BufferForAndroid

Buffer for Android
Java
2
star
21

bamboo

Java
1
star
22

data

A nice DataBin for data you might need
JavaScript
1
star
23

comparethatuni

Compare that Uni!
Python
1
star
24

teapot

A teapot for Android
Java
1
star
25

UrlOpener

Dev Tools+ (was Url Opener; the URL is the same still)
Java
1
star
26

TinyWiki

A tiny wiki powered by NodeJS. Note: Version 0.1 is now tagged. Version 0.2 (trunk) will be an almost re-write and will **break** things!
JavaScript
1
star
27

diagramatic

Ubunut App Showdown Entry - A diagramming app :)
Python
1
star
28

FallbackSwigLoader

Swig Template Loader with fallback
JavaScript
1
star
29

LifeDrawer

Python+GTK Flat-file Diary app under construction ;)
Python
1
star
30

Envelope

Very simple package manager for client-side web tech
JavaScript
1
star
31

WhatTheForms

Forms library for Node
CoffeeScript
1
star
32

Apache-Web-Developers-Controller

Small pyGTK app designed for Ubuntu which controls apache2
Python
1
star
33

One-Click-Installer

A simple one-click-installer for Ubuntu PPAs and that
Python
1
star