Demonstrate the use of AR raycasting against detected planes and object pooling to create a virtual garden (Unity AR Foundation).
- Physics Check Sphere API to prevent flower pots from overlapping.
- Mesh optimisation for trading flower mesh quality with improved performance for the AR experience.
- Make sure you've got an ARCore/ARKit enabled device.
ARFlowers
is the desired scene insideScenes
folder.- Switch platform to Android/iOS and build. (Not tested on iOS, but should work fine. Check the platform settings required for ARF applications before building for iOS. For Android, settings come saved with the project)
- Hibiscus Free 3D model from Turbosquid: https://www.turbosquid.com/3d-models/hibiscus-chinese-rose-model-1294095
- Mesh Optimizer Free Asset from Unity's Asset Store: https://assetstore.unity.com/packages/tools/modeling/mesh-optimizer-154517
- FPS Counter and Graph by Nicholas (@nvjob): https://github.com/nvjob/Unity-FPS-Counter
- Easy Object Pooling by myself: https://github.com/creativehims/Easy-Object-Pooling
- While working in the editor and regerating meshes, keep the OptimizeMesh.cs and MeshSaveEditor.cs scripts in the "AddtionalScripts" folder.
- Once ready to build to your target platform, move the 2 scipts to the "Editor" folder. If not, you'll be greeted with a bunch of build errors. :)