Questions tagged [arscnview]

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

76 questions
1
vote
1 answer

ARKit transform whole scene

I have this SCNScene which is quite nice and contains some nSCNNodes... Now I want to display this Scene in an ARSCNView. But, my whole scene is built with x,y,z >= 0 aka if I'd just set the screen my whole scene would be behind the camera. I also…
1
vote
2 answers

How to remove the camera feed in ARSCNView?

I'd like to replace the camera feed in ARSCNView as the camera quality is not as good as the native camera feed. Does anyone know how to remove the camera feed in ARSCNView?
Heestand XYZ
  • 1,275
  • 2
  • 13
  • 27
1
vote
2 answers

how to locate objects in SCNNode object boundingBox for show/hide feature

Having an issue getting a function to work when trying to setup boundingBox detection in a SCNNode. I'm expecting to be able to call the boundingBox function to detect objects inside a SCNNode and hide/show those objects on a button tap, here is my…
medright
  • 96
  • 8
1
vote
1 answer

How do I add a node to my SceneKit/ARKit scene, retaining its position but resetting its orientation/rotation

I want to add a node to my scene, keeping a position in relation to the camera, but keeping the orientation/rotation of the scene. Where I'm up to so far... When I tap the screen, I add an anchor to my scene, with a transform equal to the camera's…
Andrew
  • 6,993
  • 10
  • 39
  • 72
0
votes
0 answers

iOS how to fix intermittent scene kit crashes?

I'm trying to use two scene kit views which share a common backing. The views are different in terms of what nodes are added (one does not have any nodes, and is only displaying the camera feed). This approach works, but I get intermittent errors…
Alex Stone
  • 41,555
  • 51
  • 213
  • 379
0
votes
0 answers

SCNNode is not anchored for all 3D objects / usdz files

I detect horizontal planes and anchor my 3D object on them. I have 2 3D objects in usdz format. One object anchors right and does not move even if the camera moves. But the second object moves along with the camera. Following is the code…
MRR
  • 11
  • 3
0
votes
0 answers

Glitch Bug in Pan Gesture ARSceneView

I have an issues in my pan gesture in ARScnView, I have a SCNNode that is a child of some SCNNode and I want to pan/move SCNNode child in the parent of its SCNNode, the pan gesture working fine but sometimes there was a bug where my SCNNode child…
Danny
  • 1
0
votes
2 answers

Is it possible to change the ARKit scene's object when clicking on a button Swift

I am building and ARkit project for the first time, and what I need to do is to, first of all, I have to display a 3D Sphere in the ARSCNView. and then when I click on a button, the sphere should disappear and display a 3D cube at its place. I was…
Elin
  • 55
  • 7
0
votes
0 answers

How to show UICollectionView in ARSCNView in iOS swift?

I am trying to implement UICollectionView in ARSCNView and scroll direction horizontal with user interaction. In collection view cell contains product image and name. Is it possible to add collection view to ARSCNView? What I have tried so far…
0
votes
1 answer

Custom SKScene is not displaying in AR

I have created SKScene via SpriteKit tested it like 2D app. Here is my viewController. Everything works fine. class GameViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let scene =…
hexwhyzet
  • 1
  • 1
0
votes
1 answer

Capturing ARSCNView with virtual objects - iOS

I have an ARSCNView with virtual objects drawn. The virtual objects are drawn on the user's face. The session has the following configuration: let configuration = ARFaceTrackingConfiguration() configuration.worldAlignment =…
DesperateLearner
  • 871
  • 3
  • 14
  • 40
0
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
  • 329
  • 1
  • 9
0
votes
1 answer

SCNNode position in different places when image recognized Swift

I have this code in the didAddNode after an image is recognized. The images are displaying on top of each other in an X pattern. I need them to be one next to the other. I have tried the SCNNode x, y, and z but the image is not moving within the…
Juli
  • 1
0
votes
0 answers

Changing ARSCNView background

iOS 13.1.3 on iPad Pro Seem like there is a a same problem on previous iOS versions. Using AVCaptureDevice as SCNScene background content My app uses front cam to create AR face in iOS. At first tour, my app uses default SCNView with camera input.…
Ozgur Sahin
  • 997
  • 12
  • 22
0
votes
1 answer

ARKit switch between ARWorldTrackingConfiguration and ARFaceTrackingConfiguration - Rear and Front Camera

In my project I want to switch between ARWorldTrackingConfiguration and ARFaceTrackingConfiguration. I use two different types of view a ARSCNView to use the rear camera and a ARView to do the face tracking. First I start the ARSCNView and after, if…
BlackRock
  • 252
  • 3
  • 17