Closed azw413 closed 3 months ago
Thanks for the bug report.
I was able to load this image successfully at https://stereo-img.steren.fr
While it loads fine in the viewer, the field of view isn't automatically detected as a 180. I will see what I can do to improve this.
Can you share the exact steps you are using? (component attributes)
That's interesting, I also uploaded to your site and it displayed without issue. I cloned the project and copied the js client side libraries in lib
, parsers
, vendor
and stereo-img.js
to the docroot and then used this as the template :-
<html>
<head>
<!-- Polyfill for WebXR -->
<script src='https://cdn.jsdelivr.net/npm/webxr-polyfill@latest/build/webxr-polyfill.js'></script>
<script>
window.polyfill = new WebXRPolyfill();
</script>
<script type="module" src="stereo-img.js"></script>
</head>
<body>
<stereo-img src="media/sample.jpg" type="vr"></stereo-img>
</body>
</html>
So basically copying your example. I don't have an npm backend and instead using a rust backend so maybe I've missed some crucial step. I'm assuming that all the logic is client side, perhaps I'm mistaken and there's some processing on the server?
Thanks.
Thanks, can you replace type=vr
with type=left-right
? Or remove the attribute entirely.
I'll make sure the component doesn't crash when the VR180 type cannot find metadata it is looking for
Thanks for the suggestion, it works for the non-vr display :-
<stereo-img src="media/sample.jpg" angle="180" wiggle="false"></stereo-img>
but not for the VR mode where only the left eye view moves and the right doesn't - it's just not VR any more.
Added image to example folder in https://github.com/steren/stereo-img/commit/ff907649cb004e99180f7f862308e3d15b152e2b
using https://mutiny.cz/exifr/, I wasn't able to see any focal length information in the example image.
So we'll need to hardcode using 180deg when "Model": "insta360 evo"
When using this image as a sample, I get an error :-
You can keep this image as an example for your project, thanks