Open deinhofer opened 5 years ago
I'm not sure if I understand the issue entirely:
To goal is to view/edit/share models from a collection of existing models. Right?
Is it necessary to host the model file on the same origin?
Based on your example at the end of your comment, it seems that it is indeed working with WebACS and model file being hosted on different servers, cf.
How would it be possible to provide a searchable model store online? We need some space to save files (i.e., models) online, ideally administered by a version control system (e.g., GitHub). AsTeRICS-Web can then be used to
So that users could save, share and open a model file from there? Please let's discuss what is necessary to implement, and in what way, so that the envisioned functionality works as expected. For instance:
I'm currently thinking about the following approach:
We can provide a central "repository" of existing, tested and useful models via GitHub, which is managed by the "core" team. In addition, users may add new repositories to be shared with other users, by providing a link or uploading a single model file, or a link to an own repository. Other users can search the repository for "managed" models (from AsTeRICS), and user-provided models.
This approach requires an existing GitHub Account, but we can provide some means to upload single model files, as mentioned. Main advantages are that we can avoid namespace collisions. Moreover, using a central (own-managed) collection of models, and allowing users to add their creations, which may be added to the central collection, in combination with the API and services provided by GitHub, we can allow users to choose from different versions of the models available. If someone spots some errors, he/she may fix them immediately and open a PR.
High priority:
Open the model with a given model URL in the WebACS.
e.g.: Using the following URL parameters the given model should be opened in the WebACS:
http://asterics.github.io/AsTeRICS/webapps/WebACS/?areBaseURI=http://localhost:8081&openFile=http://asterics.github.io/AsTeRICS/webapps/asterics-camerainput-cameramouse/models/XFaceTrackerMouse(WLM).acs
Is it necessary to host the model file on the same origin?
How would it be possible to provide a searchable model store online? So that users could save, share and open a model file from there?
According to this URL of the ImageDemo model in the Asterics repository, directly linking to a model in a repository seems to work: http://asterics.github.io/AsTeRICS/webapps/WebACS/?areBaseURI=http://localhost:8081&openFile=https://raw.githubusercontent.com/asterics/AsTeRICS/master/bin/ARE/models/ImageDemo.acs