Questions tagged [arscnview]

A view for displaying AR experiences that augment the camera view with 3D SceneKit content.

83 questions
3
votes
1 answer

Check if ARSession is running (ARKit)

I have an ARSCNView that can occasionally pause its session depending on the situation. Is there a way to check if its session is running? Something like this: class myARView: ARSCNView { ... func foo() { if(session.running) { …
MuhsinFatih
  • 1,891
  • 2
  • 24
  • 31
3
votes
0 answers

VNTrackObjectRequest not tracking face using VNFaceObservation in ARSCNView

I am trying to track face using VNFaceObservation in ARSCNView let response = observations.map({ (face) -> (observation: VNFaceObservation, image: CIImage, frame: ARFrame) in self.lastObservation =…
Ros
  • 144
  • 8
3
votes
1 answer

When I use ARKit's ARSCNView, can I use the iPhone's front camera?

Currently I am learning about ARKit. On the Internet, there are usually sample code that uses ARSCNView and iPhone's back camera. I would like to use ARKit with a front camera instead of an iPhone's back camera. When I use ARKit, can I use ARSCNView…
ginger
  • 69
  • 9
3
votes
0 answers

Adding "SCNNode" to ScreenView to current view of the camera

I've got an image that im trying to add to the current camera location of the Screenview ARSCNView session. Whatever I do it seems to put the image behind the current location of the phone camera and i have to move it back to see it. I have the…
Matt
  • 3,305
  • 11
  • 54
  • 98
3
votes
1 answer

Reliable access and modify captured camera frames under SceneKit

I try to add a B&W filter to the camera images of an ARSCNView, then render colored AR objects over it. I'am almost there with the following code added to the beginning of - (void)renderer:(id)aRenderer…
diviaki
  • 428
  • 2
  • 15
2
votes
0 answers

ARKit ARSCNView: use of ultra-wide camera or zoom?

I have an ARKit ARSCNView providing an AR experience with the default rear-facing camera. I would like to use other cameras like the ultra-wide camera for that. If possible, it would be great to provide fluent zoom. Is it possible? I did some…
Thomas
  • 105
  • 1
  • 10
2
votes
1 answer

SCNNode not showing in ARFrame's capturedImage

I added a SCNNode to a ARSCNView: func renderer(_ renderer: SCNSceneRenderer, nodeFor anchor: ARAnchor) -> SCNNode? { guard let faceAnchor = anchor as? ARFaceAnchor else { return nil } guard let device = sceneView.device else { return nil } …
Bobby
  • 6,115
  • 4
  • 35
  • 36
2
votes
1 answer

ARSCNView snapshot() causes latency

I'm taking a snapshot of every frame, applying a filter, and updating the background contents of the ARSCNView with the filtered image. Everything is working fine, but there is a lot of latency with all the UI elements on the screen. No latency on…
Bobby
  • 6,115
  • 4
  • 35
  • 36
2
votes
0 answers

Adding UIImageView to ARSCNView scene background causes Saturation/Hue to be off

@IBOutlet var sceneView: ARSCNView! override func viewWillAppear(_ animated: Bool) { let imageView = UIImageView(frame: sceneView.bounds) imageView.contentMode = .scaleAspectFill imageView.image = UIImage(named: "myImage") …
Joe
  • 355
  • 1
  • 10
2
votes
1 answer

Improve Plane Detection in ARKit iOS Swift

Is there any way to improve ARKit Plane detection and Reduce the time consumed to detect it? Here we are detecting a horizontal plane thing is if we keep the camera steady it takes time to detect and it does not work on floors. For table and other…
2
votes
0 answers

How calculate transform and position of SCNNode from .scn for area of ARSCNView

I dont undestand how I can calculate SCNNode position on my ARSCNView with using Vision object. I have a detected face (VNFaceObservation) in ARSCNView, load node from .scn file. And I want that node was moving with face position. I calculate 2D…
Stas Telnov
  • 305
  • 2
  • 13
2
votes
2 answers

ARKit Stereo – Is it possible to run two ARSCNView at the same time?

I was thinking to do some modification to my existing AR app, and I wanted to split the view and add inside 2 ARSCNView in this way users can use the VR Card Box and have a different experience but Xcode is always returning me: Session…
Pietro Messineo
  • 777
  • 8
  • 28
2
votes
0 answers

ARSCNView orientation issue

I have viewController 1 that present the viewController with ARSCNView. between the transaction of the viewControllers, the orientation is changed, all the UI orientation is in the place but the ARSCNView camera view is in the wrong location ( view…
Yair hadad
  • 437
  • 3
  • 17
2
votes
1 answer

Use "SCNView" instead of "ARSCNView" – when it's not supported

I need to show 3D model via ARKit using ARSCNView, however, if user has an unsupported device A8- or iOS version 10-, so the app would use SCNView. Is it possible to maintain that in one ViewController and Storyboard? How should I init sceneView in…
Dr_Mom
  • 63
  • 8
1
vote
0 answers

How to determine size of SCNPlane to cover entire SKScene

I am developing an iOS application for a "green screen" using ARKit. That is display an image as a background in a ARFaceTrackingConfiguration AR session (similar to the "green screen" functionality available in other apps such as zoom). I want the…
DCDC
  • 486
  • 5
  • 9