2

Simple question. Stunningly, the powers that be at Google haven't presented me with an answer.

I get that ARSCNView uses Scenekit and ARView uses Realitykit. From what I understand RealityKit is newer and higher-level than SceneKit.

But what is the difference in use cases?

What type of app would someone choose ARView for/why and what type of app would someone choose ARSCNView for/why?

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
Ungrace
  • 214
  • 2
  • 12

1 Answers1

4

ARSCNView is a symbiosis of two technologies - AR and VR. ARSCNView is based on SceneKit's view for iOS with the ability to receive data coming from ARKit's ARCamera / ARSession and SceneKit's SCNScene. In other words, it's SceneKit's view with ARKit's capabilities. Written in Objective-C and Swift.

@available(iOS 11.0, *)
open class ARSCNView: SCNView, ARSessionProviding

ARView is a RealityKit class that inherits from ARViewBase (a typealias for the UIView). ARView is capable of working with both AR and VR scenes too. ARView can be used not only with pure RealityKit, but also with RealityKit + ARKit. Written in Swift from scratch.

@available(macOS 10.15, iOS 13.0, *)
@objc open class ARView: ARViewBase

For more details, read this post.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220