Been prototyping an AR toy for a potential application, and I’ve dug deep with Apple’s ARKit and SceneKit.
In case you are still confusing the two: ARKit handles environmental recognition, telling the app if there’s a surface in scene (and if so, how far away is this surface and how big is it); SceneKit handles 3D rendering of your custom objects.
To create a realistic rendering you’d want ARKit to recognize the environment and SceneKit to handle rendering.
To start, Apple has a nifty page on how ARKit works in mostly plain language.
There’s also Apple’s ARKit section in the Human Interface Guidelines. This section provides basic do’s and don’ts on application and interaction design.
To get your hands dirty, Mark Dawson has a series of 4 posts on Medium (1, 2, 3 and 4) on how to:
- Set up your first AR app and understand the relationship between
ARSession
andSCNScene
- Detect surface with ARKit
- Apply physics to rendered 3D objects (apply gravity, allow objects to bump into one another, etc.)
- Apply realistic rendering (dubbed in the industry as Physics Based Rendering, or PBR)
The only quarrel I’d have is that Mark used Objective-C in his example. Most developers have moved on to Swift. Apple’s official documentation is more or less tuned for the Swift community.
Understanding and applying PBR:
- Nick Pettit has an introduction to PBR, which is not ARKit-specific
- He’s got another post explaining more about Normal Maps if you are still confused (I was)
- Avihay Assouline guides you on how to apply PBR in Apple’s SceneKit
More in-depth articles on improving rendered results:
- Applying depth-of-field effect with SceneKit
- Advanced lighting with SceneKit
- Casting Shadows with SceneKit
Some of my additional thoughts as a PM:
-
Hire a real 3D designer if your rendered 3D model goes beyond basic geometries. They know much better at modelling and generating proper texture layers and maps.
-
If you are trying to provide a fusion of real and virtual objects and your engineering team is not adept with SceneKit, tell them to go easy on research. Some basic lightings and physics are more than enough for a magical experience; you don’t need those complex lighting, blooming effects, shape distortion or smoke particle effects… After all, you are aiming for realistic, not surreal. SceneKit is a big, big, big rabbit hole to go down.
-
Apple has also previewed ARKit 1.5 bundled in the upcoming iOS 11.3. Prepare for recognition of vertical surfaces and images. Horizontal surfaces will no longer be a dumb rectangle. The community has, been, fervert, about, these, updates so you may want to get inspired, too.