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.

1 Answer 1

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.

6
  • 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, 2020 at 0: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, 2020 at 4: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 Mar 17, 2022 at 16:44
  • 1
    Hi @ManeManero, could you publish it as a question (not comment)?
    – Andy Jazz
    Mar 17, 2022 at 16:51
  • done stackoverflow.com/questions/71516286/… Mar 17, 2022 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.