mind-ar-js icon indicating copy to clipboard operation
mind-ar-js copied to clipboard

Questions regarding mind files.

Open marcusx2 opened this issue 3 years ago • 3 comments

1- I want to have a function that takes a .mind file as parameter, and sets up the entities with mindar-image-target component (example: <a-entity mindar-image-target="targetIndex: 0">) at runtime

Is this possible, or do I need a second parameter with the number of images?

2- Can I retrieve from the .mind file, the name of the files that were used to create it?

3- Can I compile a .mind file at runtime? If possible, how can I do it? Or does the user always need to access https://hiukim.github.io/mind-ar-js-doc/tools/compile/ to compile it beforehand?

4- Is it possible to reference more than one .mind file in the html? If it's possible to reference only one .mind file with the mindar-image component, is it possible to switch .mind files at runtime? One .mind file can reference multiple images, so the idea here is that I'd be able to change the images I want to reference by grouping them in different .mind files.

Thanks @hiukim !

marcusx2 avatar Aug 07 '22 01:08 marcusx2

@hiukim ?

marcusx2 avatar Aug 10 '22 20:08 marcusx2

Hi, unfortunately the answers to 1,2,4 are all no. You cannot change them at runtime.

hiukim avatar Aug 10 '22 23:08 hiukim