AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.4k stars 922 forks source link

Load nft url dynamically #211

Open SavvasMeenaSriram opened 3 years ago

SavvasMeenaSriram commented 3 years ago

Do you want to request a feature or report a bug?

What is the current behavior? I want to load the image descriptor url dynamically. If the current behavior is a bug, please provide the steps to reproduce. We have created multiple image descriptors using the node js. All of them are available in AWS S3 bucket. I pass the name of the descriptor in a query param and it should load the url dynamically.

Please mention other relevant information such as the browser version, Operating System and Device Name

What is the expected behavior?

Url does not load dynamically.

If this is a feature request, what is motivation or use case for changing the behavior?

meizano commented 3 years ago

You can try to call the parameter using tick handler in A-Frame. more about this in https://aframe.io/docs/master/introduction/writing-a-component.html#defining-a-behavior-with-the-tick-handler or you might want to create your own component to manage the query (https://aframe.io/docs/master/core/component.html#aframe-registercomponent-name-definition) and attach it to a-scene.