hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.19k stars 407 forks source link

Questions regarding mind files. #235

Closed marcusx2 closed 1 year ago

marcusx2 commented 2 years ago

1- I want to have a function that takes a .mind file as parameter, and sets up the entities withmindar-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 !

langxiankui commented 2 years ago
  1. ./examples/image-tracking/compile.html

marcusx2 commented 2 years ago

@hiukim ?

hiukim commented 2 years ago

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

pranavkattel commented 1 month ago

how do i create my own .mind file without going into mindarjs github website;s tool @hiukim