A view for displaying AR experiences that augment the camera view with 3D SceneKit content.
Questions tagged [arscnview]
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…
![](../../users/profiles/9506784.webp)
thisIsTheFoxe
- 1,014
- 5
- 24
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?
![](../../users/profiles/4586652.webp)
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…
![](../../users/profiles/2238167.webp)
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…
![](../../users/profiles/2876236.webp)
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…
![](../../users/profiles/967484.webp)
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…
![](../../users/profiles/14780702.webp)
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…
![](../../users/profiles/11117293.webp)
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…
![](../../users/profiles/11684338.webp)
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…
![](../../users/profiles/11473695.webp)
yogesh aherwar
- 1
- 2
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 =…
![](../../users/profiles/13521730.webp)
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 =…
![](../../users/profiles/1253102.webp)
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")
…
![](../../users/profiles/7663615.webp)
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…
![](../../users/profiles/8886115.webp)
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.…
![](../../users/profiles/4156490.webp)
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…
![](../../users/profiles/1779988.webp)
BlackRock
- 252
- 3
- 17