Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Save/Open menu options #31

Open
avaer opened this issue Jun 10, 2019 · 5 comments
Open

Save/Open menu options #31

avaer opened this issue Jun 10, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@avaer
Copy link
Member

avaer commented Jun 10, 2019

We should add the ability to save/load the current DOM scene to a project directory.

This would be a precursor to something like "publish top Github", "publish to Glitch", or "upload to device", as well as actually sharing the scene code files.

@avaer avaer added the enhancement New feature or request label Jun 10, 2019
@chrislatorres
Copy link
Contributor

sharing to glitch would only be usable on studio/exokit though right? regular browsers would not use the reality layers/iframes

would this include publishing the studio index.html, three.js, example htmls, etc?

@avaer
Copy link
Member Author

avaer commented Jun 10, 2019

My thinking is there are two distinct modes here:

  • Each layer can be exported separately and this would not require anything on the reader side
  • The whole scene, with all layers, can be saved/exported

This is very similar to how Adobe Photoshop works when you do a save/export.

@chrislatorres
Copy link
Contributor

Downloaded a basic site with a few lines of code, something more complex like a-painter does not work right away though, it has the main files but is missing some asset obj mtl png files.

Going to open a PR with this functionality, as it will feed into #42.

scrapedCapture

@avaer
Copy link
Member Author

avaer commented Jun 21, 2019

For saving full site contents, the main approach is to use service workers: exokitxr/exokit#879

@avaer
Copy link
Member Author

avaer commented Jun 21, 2019

And the main prerequisite of that is https://github.com/modulesio/window-sw, which has a prerequisite of implementing the xhr and fetch interceptions such that they can be routed to the service worker.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants