Is it possible to limit the size of a Drawable2D so it does fit inside of the screen bounds? Say I have an image or video on top of a tracked target and the user moves the camera very close. I would want the image or video to shrink. Is that possible?
This should be possible by applying the option distanceToTarget. You can find mode details on this documentation section and information about this option on the Javascript API Reference here.
Thanks Eva
L
Lance Labrague
said
over 6 years ago
Same problem here. Has anyone solved this?
Wikitude Support
said
over 6 years ago
Hello Lance,
Did you try to follow the directions provided on the forum post above? You can also adjust the size of a Drawable by changing the scale property.
Thorsten Schemm
Is it possible to limit the size of a Drawable2D so it does fit inside of the screen bounds? Say I have an image or video on top of a tracked target and the user moves the camera very close. I would want the image or video to shrink. Is that possible?
1 person has this problem