Open MagicIndustries opened 7 years ago
I've since discovered it throws the querySelector error if you use a src attribute with either a path on the image or an asset id. IE:
This works:
<a-entity
id="#skyLeft"
geometry="primitive: sphere; radius: 10000; segments-width: 248"
material="src: Odeion_FrontRow_001_360_L.jpg"
scale="1 1 -1" stereo="eye:left">
</a-entity>
These two both throw the querySelector error:
<a-entity
id="#skyLeft"
geometry="primitive: sphere; radius: 10000; segments-width: 248"
material="src: assets/panos/Odeion_FrontRow_001_360_L.jpg"
scale="1 1 -1" stereo="eye:left">
</a-entity>
<a-entity
id="#skyLeft"
geometry="primitive: sphere; radius: 10000; segments-width: 248"
material="src: #img1"
scale="1 1 -1" stereo="eye:left">
</a-entity>
I have the same issue! Thank you so much for the fix.
@oscarmarinmiro any thoughts on merging the PR? It looks good but I left a few suggestions on the PR to help you out.
thanks @MagicIndustries , merged. @AmadeusW I'll look into your suggestions, of course. Thanks a lot for the patience
Sorry but the PR broke stereo video playing. I just tweaked the code a little, included an image example in the pages and README, and tested on 0.6.0. Hope it all works fine for you
https://github.com/oscarmarinmiro/aframe-stereo-component/releases/tag/v0.6.0
Great! I'll update to 0.6.0 and test it.
I had this component working previously, but now I'm getting this error:
If I remove the path and put the image in the root I get this error instead:
The code I'm using is below in it's entirety - am I missing something stupid? I've tried it with and without a camera, same results. I'm using the current master dist/aframe-stereo-component.js.min.js