DeviateFish / ingress-model-viewer

Ingress Model Viewer
MIT License
33 stars 8 forks source link

Hosted? #35

Closed ryantheleach closed 7 years ago

ryantheleach commented 7 years ago

Is this hosted anywhere? I think I used to check it out on the default github pages routing, but now it seems that it's inaccessible due to being assigned the docs directory.

DeviateFish commented 7 years ago

There's actual documentation up on the github pages urls, now. I wasn't aware that it was hosted in that way before--or at least I don't think it ever was.

I don't plan on hosting this anywhere because that would require also hosting the .obj files found in the apks, which aren't mine. So, for legal reasons and whatnot, you'll have to pull it down and host it locally. From there, just drop the apk's assets folder into the root can enjoy

ryantheleach commented 7 years ago

I think I must be thinking of the polymer test.

DeviateFish commented 7 years ago

Ah, you might be. I need to update that to a newer version of... everything, really.

rjwut commented 7 years ago

The documentation is great. It would be helpful to have sample code, as well.

DeviateFish commented 7 years ago

@rjwut It's on the list. There are some "demos" in the demos folder, but they aren't well documented or anything. The best one (so far) is probably sandbox.html... the most complex is definitely snapshots.html + capture.js

rjwut commented 7 years ago

Yeah, but unfortunately, they don't appear to work right now. For example, running sandbox.html triggers the error "IMV.Engine is not a constructor." Perhaps these demos were written for an older version of IMV and haven't been updated to reflect your changes?

DeviateFish commented 7 years ago

@rjwut sandbox.html was actually what I used to generate that animation of the new items that's floating around... So maybe there's a step missing? How are you serving sandbox.html?

Try starting it with npm run serve and seeing what happens?

rjwut commented 7 years ago

I was running it under a node server, but I realized something I had done wrong. I corrected the issue I was experiencing, but things are still not working right. Here is what happens when I attempt to view each demo page:

clean-slate.html: Blank white page. Console shows no errors.

portal-test.html: A small red portal appears on the screen, then resonators appear one by one around it. Two of the resonators have no connecting beams; the rest do, but they are red instead of matching the resonator color, and extend far past the actual location of the resonator. The size of the portal does not increase with each deployed resonator, as they do in the actual application. After all resonators are deployed, the portal turns blue.

globe.html An interactive globe (with a red link between North America and Europe) appears as expected. However, strange white artifacts appear around the lower edge of the globe as you rotate it.

sandbox.html: Blank black page. Console shows no errors.

animation-test.html: Blank white page, console shows the error "IMV.Utilities.AssetLoader is not a constructor."

link-test.html: Blank white page. Console shows no errors.

snapshots.html: Blank white page, console shows the error "IMV.Utilities.AssetLoader is not a constructor."

DeviateFish commented 7 years ago

Ah, that sounds much more like what I would expect.

I'll look into cleaning up or fixing these demos. I have a tendency of fixing whichever one helps me test new changes, but not the others... so they get updated in a very sporadic fashion.

rjwut commented 7 years ago

Answering your question from sandbox.html: Yes, I did extract the assets folder from the latest APK. (I imagine I would have gotten a bunch of 404 errors in portal-test.html if I hadn't.) I checked the Network tab in the Chrome developer console and it does seem to be loading various assets, but nothing appears on the page.

DeviateFish commented 7 years ago

Interesting. You have the latest version of the master branch, too? It used to be a demo that I think needed some manual starting, but I just changed that in my most recent commits.

rjwut commented 7 years ago

Aha, that was the problem. I was using the latest release, not master. When I downloaded master and tried it out, sandbox.html worked.

DeviateFish commented 7 years ago

Ah okay. I guess I forgot to cut a new release! I'll add that to my list.