-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with ARCore #32
Open
wryonik
wants to merge
6
commits into
master
Choose a base branch
from
internal-hackathon-ARCore
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
11ff392
Blog including steps involved in setting up development environment f…
wryonik e24264a
Almost complete. Review required.
wryonik a845a8e
Minor spelling mistakes fixed
wryonik f52b4a5
Added process for setting up whole development environment
wryonik 9c1f89b
minor issues fixed
wryonik ef1cdeb
numerical list replaced by bullets fixed
wryonik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
layout: post | ||
title: Working with ARCore | ||
excerpt: Playing with Unity and Google’s ARCore | ||
author: | ||
name: Shubham Gupta | ||
link: https://github.com/shubhamgupta2956 | ||
bio: Developer, SDSLabs | ||
image: shubham.jpg | ||
--- | ||
|
||
# The Motivation behind this blog | ||
|
||
Installing Unity is an easy task. Just download the setup files and after accepting all the agreements and defining the various paths, etc., it will install automatically and you are good to go. However, the main problem arises when you want to do android development using unity. | ||
|
||
# What is ARCore? | ||
|
||
According to Wikipedia, ARCore is a software development kit developed by Google that allows for augmented reality applications to be built. | ||
ARCore uses three key technologies to integrate virtual content with the real environment: | ||
* Motion Tracking: It allows the phone to understand its position relative to the world. | ||
* Environmental understanding: It allows the phone to detect the size and location of all types of surfaces, vertical, horizontal and angled. | ||
* Light Estimation: It allows the phone to estimate the environment’s current lighting conditions. | ||
|
||
# Setting up the development environment | ||
|
||
## Requirements | ||
|
||
* Unity 2017.4.26f1 or later | ||
|
||
** Make sure to include Android Build Support during installation | ||
|
||
** When using Unity 2019, the following Unity packages are required: | ||
|
||
* Multiplayer HLAPI | ||
* XR Legacy Input Helper | ||
|
||
* ARCore SDK for Unity 1.12.0 or later | ||
|
||
* Android SDK 7.0 (API Level 24) or later, installed using the SDK Manager in Android Studio | ||
|
||
## Get the ARCore SDK for Unity | ||
* Download ARCore SDK for Unity 1.12.0 or later. | ||
The SDK is downloaded as arcore-unity-sdk-1.12.0.unitypackage. | ||
|
||
## Create a new project and import the SDK | ||
* Open Unity and create a new 3D project. | ||
|
||
* Unity 2019 only: Select Window > Package Manager and install the following packages: | ||
|
||
** Multiplayer HLAPI (required by the CloudAnchors sample) | ||
** XR Legacy Input Helpers (required by Instant Preview, which uses the TrackedPoseDriver) | ||
* Import the ARCore SDK for Unity: | ||
|
||
** Select Assets > Import Package > Custom Package. | ||
|
||
** Select the arcore-unity-sdk-1.12.0.unitypackage that you downloaded. | ||
|
||
** In the Importing Package dialog, make sure that all package options are selected and click Import. | ||
|
||
# Error! Help! | ||
|
||
Unity by default does not contain any SDK, JDK related to android development. So you have to install it on your own which is not easy as it seems as SDK manager is not available. For installing SDK, one can do two things:- | ||
* Install Android Studio | ||
* Install SDK command-line tools | ||
|
||
While the first method is quite easy. You just have to install android studio and with it, you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware that can run this heavy beast without any lag. | ||
|
||
The second way is the hard way. It includes the use of the command line. The command-line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file. Migrate to tools/bin and open the command prompt in that folder. Type the command | ||
|
||
`sdkmanger --list` | ||
|
||
It will list all the packages that can be installed. To install any package just type the command `sdkmanager packages [options]`. For example, here's how to install the SDK tools for API level 28: | ||
|
||
`sdkmanager "android-28"` | ||
|
||
After that, the only thing remaining is to add this SDK's path in the path variable. Add it by going to the menu bar, go to Unity > Preferences > External Tools. | ||
|
||
Now it's all set. Happy Hacking. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.