- Download the App
- About ToF AR
- Overview of ToF AR Samples Basic
- Component
- Assets
- Development environment
- Notes
- Contributing
Experience immersive AR scenes made with ToF AR.
Download ToF AR Samples Basic now from App Store and Google Play and try it out!
ToF AR, Time of Flight Augmented Reality, is a toolkit library for Unity providing application developers with tools to start building immersive worlds for iOS and Android devices. ToF AR mainly targets iOS and Android smartphones with a ToF sensor from Sony, but it also works with other depth sensors, such as structured light method sensors.
As well as ToF AR, Unity and compatible devices with ToF sensors are required to build and execute the ToF AR Samples Basic application.
Please see ToF AR official website (Currently available only in Japanese) for ToF AR downloads and development guides, sample applications, and a list of compatible devices.
ToF AR Samples Basic is a simple sample application that uses the functions of ToF AR and provides the following scenes:
Color | ColorDepth | BasicStream | DepthConfidence |
---|---|---|---|
Display Color image | Superimpose Color image and Depth image | Tile Depth, Confidence and Color images | Display Depth image and Confidence image side by side |
Using the built application is described below.
-
When you start the application, the scene list is displayed on the screen. Select a scene from the list and tap it to start it.
-
Tap the camera icon at the bottom left of the screen to display a list of available cameras for the selected scene. Select an appropriate camera, and the scene will start working.
-
Tap the screen with four fingers to return to the top screen.
The table below shows the relationships between the scenes in the sample application and the ToF AR components used by each scene. The scene names are arranged vertically and the component names are arranged horizontally. A check mark indicates that the component is used.
ToF | Color | Mesh | Coordinate | Hand | MarkRecog | Body | Segmentation | Slam | Face | Plane | Modeling | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Color | ✓ | |||||||||||
ColorDepth | ✓ | ✓ | ✓ | |||||||||
BasicStream | ✓ | ✓ | ||||||||||
DepthConfidence | ✓ | |||||||||||
PointCloud | ✓ | |||||||||||
ColorPointCloud | ✓ | ✓ | ✓ | |||||||||
HumanPointCloud | ✓ | ✓ | ✓ | ✓ | ||||||||
Segmentation | ✓ | ✓ | ||||||||||
Hand | ✓ | ✓ | ✓ | ✓ | ||||||||
LiveMeshOcclusion | ✓ | ✓ | ✓ | ✓ | ||||||||
ColorHandOcclusion | ✓ | ✓ | ✓ | ✓ | ✓ | |||||||
Body | ✓ | ✓ | ||||||||||
ColorBody | ✓ | ✓ | ✓ | ✓ | ||||||||
HandHark | ✓ | ✓ | ✓ | |||||||||
ColorHandMark | ✓ | ✓ | ✓ | ✓ | ||||||||
SLAM | ✓ | ✓ | ✓ | |||||||||
Face | ✓ | ✓ | ✓ | ✓ | ✓ | |||||||
Plane | ✓ | ✓ | ||||||||||
Recorder | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
ToF AR Samples Basic provides the following assets. Assets include URP (Universal Render Pipeline) and VRM (Virtual Reality Model) for 3D characters and avatars.
Sample scene scripts and resources are stored for each component.
Prefabs and scripts are stored as the configuration change UI used by each component.
File | Description |
---|---|
Settings.Prefab | Configuration change UI |
XXXController.Prefab | Manage configuration changes for each component |
URP is the standard lightweight rendering pipeline of Unity for displaying scene content. URP is included in the asset.
Please see Universal Render Pipeline documentation.
VRM is a platform-independent 3D avatar file format for humanoid characters and avatars. VRM is included in the asset.
Please see VRM documentation.
ToF AR is required for build. Download the ToF AR toolkit from ToF AR official website, then import it and use it in a Unity project. Note that both Base and Hand components are required by ToF AR Server.
If the project is opened before ToF AR is set up, a confirmation message to enter safe mode may appear, depending on your settings. If you start Unity in safe mode, exit safe mode and then import the ToF AR package.
ToF AR Development documents are also available on the official website.
- ToF AR user manual for overview and usage
- ToF AR reference articles for articles about each component
- ToF AR API references
Operation was verified in the following environment:
- Unity Version : 2021.3.31f1
- ToF AR Version : 1.4.0
Be aware that recognizable hand gestures may have different meaning in countries/areas.
Prior cultural checks are advisable.
We cannot accept any Pull Request (PR) at this time. However, you are always welcome to report bugs and request new features by creating issues.
We have released this program as a sample app with a goal of making ToF AR widely available. So please feel free to create issues for reporting bugs and requesting features, and we may update this program or add new features after getting feedback.