1

In SceneKit SDK to allow controlling a camera movement you need to set a parameter called .allowsCameraControl to true.

var scnView = SCNView(frame: .zero)
scnView.allowsCameraControl = true

What parameter for controlling a camera (dolly in, dolly out) is used in RealityKit?

var arView = ARView(frame: .zero)
// ???

Any help appreciated.

Kurt
  • 57
  • 10

1 Answers1

1

At the moment RealityKit 2.0 has no SceneKit's equivalent called .allowsCameraControl for moving and rotating virtual camera. Cupertino engineers consider that there's no need to have such a control because RealityKit is rather AR-sentric framework than VR-sentric one.

For further details, look at this post.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
  • 3
    This is getting a bit annoying... the divide between RK and SK is really becoming a problem, they overlap, but each is missing lots. – Dan M Oct 12 '20 at 00:56
  • I agree @danm, the best choice is to use just one SDK, not both. I prefer RealityKit, cause it has more modern features. – Andy Jazz Oct 12 '20 at 04:58
  • 1
    @AndyJazz, without something like .allowsCameraControl, It is impossible to use RealityKit for any nonAr use case.... Is there any workaround? Seems like apple abandoned Scenekit, but has no 3D framework to replace – Mane Manero Mar 17 '22 at 16:44
  • 1
    Hi @ManeManero, could you publish it as a question (not comment)? – Andy Jazz Mar 17 '22 at 16:51
  • done https://stackoverflow.com/questions/71516286/realitykit-as-a-framework-to-build-3d-nonar-apps – Mane Manero Mar 17 '22 at 17:00
  • Hi @Kurt, I've updated my answer. – Andy Jazz Mar 19 '22 at 09:36