Tustan AR is Augmented Reality App. It takes back wooden castle existed in IX-XVI centuries. You can reconstruct outdoor landmark of Your choose with the source.
How we made it: Article
Links: Play Market, App Store
- Unity 5.6.0f3 and higher;
- Vuforia 6.2.10+;
- Android Build Tools 23+ (latest may have not been supported)
- Windows 10 x64;
- Mac OS X Sierra and higher;
- Android Studio 2.3+;
- Xcode 9+.
- iOS 10+;
- Android 4.4+ (Unity may not support latest Android versions).
Main scene is Scenes/Scene
.
If you have Unity 2017.2 or later, you must have Vuforia component installed (if you haven't installed it, get it here).
- Go to
GameObject -> Vuforia -> ARCamera
menu, accept installing Vuforia components. After that delete newly created ARCamera gameobject from scene. - Go to
Resources/VuforiaConfiguration
in Project hierarchy and set checkboxesLoad TustanARStableTargets Database
andActivate
on.
For previous Unity versions you must download Vuforia manually from Vuforia website and activate TustanARStableTargets
Database.
Now you can build and run the project!
(By the way, you can test the app, pointing phone camera to the image above. :))This is a hack which enables native behavior on iOS platform. Fix is impossible due to Objective-C language features.
- Go to
Applications/Unity/PlaybackEngines/VuforiaSupport/iOS
folder. - Copy file
VuforiaNativeRendererController.mm
to other folder on your drive. - Сomment last line in the file (add to slashes in the beginning of
IMPL_APP_CONTROLLER_SUBCLASS(VuforiaNativeRendererController)
) - Save file and replace old file in
VuforiaSupport/iOS
with modified. - You're done!
- Go to
Assets/Plugins/iOS/
folder in your project. - Сomment last line in the file
VuforiaNativeRendererController.mm
(add to slashes in the beginning ofIMPL_APP_CONTROLLER_SUBCLASS(VuforiaNativeRendererController)
) - You're done!
If you want to rebuild Android plugin (/plugin
folder in repository root), you must find classes.jar
file, provided with Unity (how to find), and copy that file to the Android project.
Unity lightmaps has different formats in different versions. Current textures are baked with Unity 2017.2.0f3. You may want to rebake them. How to bake?