- Augmented Reality for Developers
- Jonathan Linowes Krystian Babilinski
- 220字
- 2025-04-04 18:11:44
Installing ARToolkit
To install ARToolkit, begin by going to the website and downloading the Unity package (https://archive.artoolkit.org/download-artoolkit-sdk). The file may be named something like ARUnity5-x.x.x.unitypackage:

Once downloaded, you should copy it into a memorable place outside your current Unity project. We're going to import it now, but you might also want to import it again into other projects.
Next, download the Additional Unity Tools zip file, which includes, among other things, utilities required to generate an image target. Choose the download for Windows or macOS that is appropriate for you. The file may be named ARUnity5-x.x.x-tools-win.zip or ARUnity5-x.x.x-tools-osx.tar.gz. Unzip it and move the resulting folder to a memorable place. On Windows, you might choose to put it into C:\Program Files. It contains a bunch of subfolders, including the bin/ directory which contains executable utilities that you will need in future chapters, including target creation and camera calibration tools. Documentation on using these tools, and all that's included with ARToolkit, can be found online at https://archive.artoolkit.org/documentation/.
The tools folder also includes a doc/ directory with some sample images, including one that we're going to use now, named gibraltar.jpg. Please print a hardcopy of this image. When developing, you not only need a digital copy of your target image, but you need a printed hardcopy as well, to test out your app:
