oculus-touch-controls / vive-controls / hand-controls should be able to define model URL
Description:
In case you want to point to one locally.
you mean should be able to override base URL, right?
https://github.com/aframevr/aframe/blob/master/src/components/oculus-touch-controls.js#L5
hmm, vive-controls doesn't have a base URL.
There is a larger question here, IMO, of whether all of the cdn.aframe.io links that core components use should be able to have their base URL redirected for offline use, not just the models for tracked controllers
(e.g. fonts)
Yeah, but not exposed in the schema. I don't think we need anything magic, just a way to configure.
is it enough to export the base URL variables for whatever components need to do this?
(this is easy enough that we may want to find a willing first-time participant looking to jump in)
Export the base URL? I'm just thinking simple: expose schema property where you provide a full URL or path. Don't have to think about what strings are added together and such.
then you have to do it for left and right, obj and mtl, per instance... seems pretty tedious... and needs to be done for hand-controls too either way.
It's not too bad, you just make the URL constants into a schema property default. Users don't have to define if they don't need, but in the case they do (e.g., work offline), they can.
not worried about schema, just that there are multiple urls that all need to be overridden together.
for the static use case, the filenames would all be the same, just need to change the base URL to something local.
more insidious is the case where someone is using hand-controls and not directly specifying oculus or vive... need to override for all instances, which putting in schema won't accomplish.
Yeah if you want to override the model you can disable the default one and use your own model on your own higher level component specific to your application as the hand-controls component does or the paint-controls on a-painter. Most likely you will want to add logic to manage button highlights and animations
yes but the use case mentioned here is how to embed the stock models for self contained usage. in that case really you would need other cdn.aframe.io files as well
Hi @dmarcos @machenmusik @ngokevin, is this issue still being discussed? If not, can you please summarize how a newbie can work on this?
Thanks :-)
Hey everyone! I am a new contributor and am looking for some issues to work on. This one has piqued my interest and I would be open to understanding how I can help. I noticed that there was a comment by @machenmusik that it is easy enough for a first-time participant to tackle it.
How can I help?
Pattern at the moment is to set all *-controls to model: false and set model manually. We usually have an application-specific controller component