Open juliusakula opened 3 years ago
other options
Three.js is Wow
1/3 - 1/2 of viewers are on mobile so:
best drag and drop previewer
https://threejs.org/examples/webgl_panorama_equirectangular.html
Started digging into the fact that my drone can take VR photos, and added a 360 degree VR Photo-Sphere page to my blog (had to dig into like 3 different javascript libraries to find the right one that works on mobile)..
More to come, this was just a test of my photosphere capabilities.. I'm really impressed with how well it stitches together the image at the bottom. Directly below you in the first picture, you can very clearly see that bird's nest. Awesome.
Check it out, POV: you are a bird above a bridge on a shitty day in Clark Fork.
photo-sphere-viewer implemented: https://murdockfpv.github.io/vrphotos/
CODE JAVASCRIPT -- https://github.com/murdockfpv/murdockfpv.github.io/blob/master/_includes/PHOTOSPHERE.html
CODE, VR PAGE (post, usage example) -- https://github.com/murdockfpv/murdockfpv.github.io/blob/master/_posts/2021-01-11-photosphere_vr.md
KEYPOINTS (documentation) -- https://photo-sphere-viewer.js.org/plugins/plugin-autorotate-keypoints.html#example
https://photo-sphere-viewer.js.org/guide/config.html#advanced-options
photosphere viewer has a capture keyboard event listener method which could potentially be used to flip between one VR photo and the next. Big Goal.
instead of
'ArrowRight': 'rotateLongitudeRight',
'ArrowLeft': 'rotateLongitudeLeft',
have something like:
'ArrowRight': 'nextImage',
'ArrowLeft': 'previousImage',
and define those functions to swap the image source with the next or previous item in the array of photos. would pass in an array of photos like:
{% include PHOTOSPHERE.html caption="Above a Bridge © Justin Murdock" img_urls="'/images/DJI_0358.JPG', '/images/DJI_0354.JPG'" id="viewer2" default_lat="-0.6" default_long="3" default_zoom="30" %}
img_urls
vs img_url
is a big difference
create PHOTOSPHERE_FLIPBOOK.html ?
More info, Traveling from place to place https://codingjames.ca/making-360-panoramas-to-embed-in-a-webpage/
Requires some javascript so here
https://photo-sphere-viewer.js.org/
works super good on mobile.