asterics / asterics-web

This repository contains the code for the AsTeRICS Web platform for developers.
0 stars 0 forks source link

Integrate View/Edit model functionality of WebACS #6

Open deinhofer opened 5 years ago

deinhofer commented 5 years ago

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

sabicalija commented 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?

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.

deinhofer commented 5 years ago

High priority: