miralabs / mira-unity-sdk

Mira’s Unity-based SDK enables creators to develop original experiences, re-tool existing 3D assets, or add a premium layer to their existing handheld AR apps.
https://developer.mirareality.com
Other
54 stars 17 forks source link

Custom 3D marker #9

Open araujokth opened 6 years ago

araujokth commented 6 years ago

Hi,

I would like to track a 3D marker (e.g. a cube) instead of 2D. An example of the marker that I would like to track can be found here https://github.com/qian256/HoloLensARToolKit which I have been previously tracking with a Hololens. I tried looking into Wikitude and see if they would support this (so it could be used with Mira as well) but wasnt really able to find anything on this. It would be great to know if anyone has seen already something on this.

Thanks a lot for the help!

cbarronmira commented 6 years ago

Hi @araujokth , according to the wikitude documentation: "You can have multiple trackers in the same scene, but only one can be active at a time. If you enable a second one, the first one will be automatically disabled by the plugin."

You can simulate this behavior by printing out a tracker cube, and creating a marker for each side. In the unity scene, each marker should have a world position of (0,0,0), and rotation of (0,0,0). This would allow you to have a different piece of content on different sides of the cube, but you would have to script custom behavior to make the system understand how these sides relate to each other

araujokth commented 6 years ago

Oh. So if "You can have multiple trackers in the same scene, but only one can be active at a time. If you enable a second one, the first one will be automatically disabled by the plugin." its true, than that means that the multiple marker case which I am trying to achieve will not be feasible? Couldnt you enable N plugins to track N different markers where for each tracking plugin you specific different markers? Or is it that a single plugin can be enabled and that after a first marker is identified the search for markers is stopped?