artoolkitx / arunityx

artoolkitX for Unity, providing high-performance video acquisition, marker and texture tracking and full Unity Editor support
https://www.artoolkitx.org/
Other
41 stars 22 forks source link

Same marker multiple objects #103

Open TyroneStaMaria opened 4 months ago

TyroneStaMaria commented 4 months ago

Is it possible to detect the same marker at the same time and render two different objects?

Heyn1999 commented 4 months ago

Hello, I am doing the same thing as you. I saw that there is an option about 2D tracking under ARXController in Unity. It defines the maximum number of tracking. It may be to solve this problem, but after testing, it does not achieve the expectation. 屏幕截图 2024-03-05 151837

philip-lamb commented 4 months ago

If you're using square markers it is possible to track more than one instance of the same marker, although you'll have to modify the example code to make use of this capability.

For the 2D texture markers, it's not currently possible. I guess it's a project someone could take on if they were interested, but you'd be diving deep into implementation details of the tracker.