Reality Kit sample code collection “Reality Kit-Sampler”

MLBoy
3 min readOct 19, 2021

RealityKit sample collection “RealityKit-Sampler” has been released as open source.
RealityKit is Apple’s latest AR framework.

RealityKit-Sampler

The source code is on GitHub, so feel free to use it.

Since there are not many official samples for operating RealityKit simply, RealityKit-Sampler is careful about “covering the elements that make AR apps from basics to applications”. At first glance, the entity, component system, etc. may look completely different from the conventional ARKit + SceneKit, but when you touch it, you can easily handle rich AR content, so I hope you can find it easy to use.

How to build

1, Download or Clone this project and open in xcode.

2, Please change the “Team” field of xcode Signing and Capabilities to your account.

3, Build on your actual device. This project can not be used in Simulators.

Sample list

Put the box

A short code that puts a simple object on a plane. You’ll find it surprisingly easy to place objects in RealityKit.

Gigant Robots

How to view and animate rich USDZ content.

Big monitor

A sample of selecting a video from a photo album and pasting it as a texture.

Building blocks

How to use objects of various shapes and surfaces. Also, a sample to operate them using gestures.

Speech Balloon

A sample that recognizes faces and facial expressions and visualizes utterances as well.

Special Move

A sample that interacts a body with an AR object using a body anchor that can recognize the body.

***

Face Cropper

A sample that recognizes a face and cuts out a poster.

AR Hockey

A sample of making a game using the multi-device sharing function.

Hand Interaction

A sample that touches AR objects by combining Apple’s computer vision framework and RealityKit.

Benefits of using Reality Kit

There are several options for creating an AR app on iOS, and I think RealityKit is the first choice.
The reasons are as follows.

Official and latest framework
Thus generous updates and support
Easy to handle
Beautiful rendering and rich AR content

I myself made an AR app with ARKit + SceneKit, but I took this opportunity to try out RealityKit.
I had an image that it was not as flexible as SceneKit, but when I tried it, I was able to do various things.
I wanted to share the ease of use of RealityKit, so I made a reference book for RealityKit and this Sampler.

🐣

****

Request for work:

rockyshikoku@gmail.com

We send information related to machine learning.

Twitter

Request for work:

rockyshikoku@gmail.com

--

--