|
@@ -45,6 +45,23 @@ encantar.js uses a right-handed coordinate system with the Z-axis pointing "up".
|
45
|
45
|
|
46
|
46
|
Yes. You can increase the [resolution of the tracker](api/image-tracker.md#instantiation), as well as the [resolution of the camera](api/camera-source.md#instantiation), using the API. You can also increase the resolution of the rendered virtual scene by setting the [resolution of the viewport](api/viewport.md#instantiation). Performance is affected by various factors such as upload times (GPU). Test your AR experience on your target devices to find a good balance between performance and increased resolution.
|
47
|
47
|
|
|
48
|
+## How do I know which image is detected?
|
|
49
|
+
|
|
50
|
+Add an [event listener](api/image-tracker.md#targetfound) to the Image Tracker, as in the example:
|
|
51
|
+
|
|
52
|
+```js
|
|
53
|
+const tracker = AR.Tracker.Image();
|
|
54
|
+
|
|
55
|
+// ...
|
|
56
|
+
|
|
57
|
+tracker.addEventListener('targetfound', event => {
|
|
58
|
+
|
|
59
|
+ // print the name of the Reference Image
|
|
60
|
+ console.log('Found target: ' + event.referenceImage.name);
|
|
61
|
+
|
|
62
|
+});
|
|
63
|
+```
|
|
64
|
+
|
48
|
65
|
## Any recommendations?
|
49
|
66
|
|
50
|
67
|
Refer to the [recommendations](./recommendations.md).
|