argonjs / argon

An open-standards augmented reality platform for the web
http://argonjs.io/
Apache License 2.0
403 stars 72 forks source link

Issue with switching panorama realities in argon-aframe: #54

Open jdbolter opened 7 years ago

jdbolter commented 7 years ago

Two related bugs:

  1. Problem that seems to be between the new argonjs and argon-aframe. artnotart.org/jdbolter/ar-frame/panorama/show2.html artnotart.org/jdbolter/ar-frame/panorama/show2a.html

The only difference between show2 and show2a is that show2 uses the previous version of argonjs and show2a uses the latest version. What is supposed to happen: four panos are loaded and the first is shown. There is a disk with the Malmö logo on it in the scene. When the user holds the cursor over the disk for 1.5 secs, the next pano should be shown, and so on through all four panos. Show2 works in Argon. Show2a shows the first pano, but when the user holds the cursor over the disk, the next pano appears but the disk is now stuck to the screen rather than in the 3d space. It is no longer possible to move the cursor over it.

In addition if you load show2a into the Safari browser on the iPhone, no panorama shows at all.

  1. Problem that predates switch to new argonjs Just using show2.html. This works in Argon. However, if you load it into the Safari browser, the first pano appears. When you move the cursor over the Malmö disk, the screen goes black. No further panos appear.

The code for show2 and show2a are found here.: https://github.com/jdbolter/argon-aframe-tests/tree/dev/panorama

blairmacintyre commented 7 years ago

First thing to check: it appears that you are using the same, old, panorama reality (which uses the old argon.js) in both versions.

You should probably copy the new panorama reality from the samples, and make sure it's using the new argon.js (i.e., don't leave it loading the old <script src="../../js/argon.min.js"></script>).