aframe icon indicating copy to clipboard operation
aframe copied to clipboard

oculus-touch-controls / vive-controls / hand-controls should be able to define model URL

Open ngokevin opened this issue 9 years ago • 16 comments

Description:

In case you want to point to one locally.

ngokevin avatar Mar 23 '17 20:03 ngokevin

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

machenmusik avatar Mar 23 '17 20:03 machenmusik

(e.g. fonts)

machenmusik avatar Mar 23 '17 20:03 machenmusik

Yeah, but not exposed in the schema. I don't think we need anything magic, just a way to configure.

ngokevin avatar Mar 23 '17 20:03 ngokevin

is it enough to export the base URL variables for whatever components need to do this?

machenmusik avatar Mar 23 '17 20:03 machenmusik

(this is easy enough that we may want to find a willing first-time participant looking to jump in)

machenmusik avatar Mar 23 '17 20:03 machenmusik

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.

ngokevin avatar Mar 23 '17 20:03 ngokevin

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.

machenmusik avatar Mar 23 '17 21:03 machenmusik

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.

ngokevin avatar Mar 24 '17 18:03 ngokevin

not worried about schema, just that there are multiple urls that all need to be overridden together.

machenmusik avatar Mar 24 '17 19:03 machenmusik

for the static use case, the filenames would all be the same, just need to change the base URL to something local.

machenmusik avatar Mar 24 '17 19:03 machenmusik

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.

machenmusik avatar Mar 24 '17 19:03 machenmusik

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

dmarcos avatar Mar 29 '17 05:03 dmarcos

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

machenmusik avatar Mar 29 '17 12:03 machenmusik

Hi @dmarcos @machenmusik @ngokevin, is this issue still being discussed? If not, can you please summarize how a newbie can work on this?

Thanks :-)

gurumukhi avatar Jun 16 '17 19:06 gurumukhi

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?

jselmani avatar Sep 27 '17 15:09 jselmani

Pattern at the moment is to set all *-controls to model: false and set model manually. We usually have an application-specific controller component

ngokevin avatar Apr 04 '18 11:04 ngokevin