A view for displaying AR experiences that augment the camera view with 3D SceneKit content.
Questions tagged [arscnview]
83 questions
1
vote
1 answer
ARSCNView lagging with GPU error "Execution of the command buffer was aborted... (IOAF code 5)" on iOS 12
I'm not sure what code is relevant to post here, but I'm really just wondering how to go about even debugging this. I display an ARSCNView with ARFaceTrackingConfiguration enabled, and on a background thread I perform frequent Vision…

Michael
- 291
- 2
- 6
1
vote
1 answer
ARKit 2.0 – How to stop Audio from playing in SCNView?
I am developing an AR application which is needed to play an audio.
I have done that like:
guard let audioSource = SCNAudioSource(fileNamed: "sample.mp3") else { return }
audioSource.loops =…

Mina
- 2,167
- 2
- 25
- 32
1
vote
1 answer
textSize property of SCNText is missing
I want to add a SCNPlane around the SCNText in ARSCNView. therefore I need the textSize of a text which I have created with SCNText like:
as you can see from the image, there is an error which indicate that the
SCNText has no member…

Mina
- 2,167
- 2
- 25
- 32
1
vote
1 answer
ScreenShot issue in ARKit in swift
i have application that uses ARSCNView. i'm trying to take a screenshot on click of a button and saved that image in the gallery. But when i take a screenshot it does not show the content on that screen. Just show that image, i have some labels on…

raheem
- 689
- 2
- 8
- 16
1
vote
1 answer
ARKit: Removing ARSCNView shows static camera feed instead of top-most SCNView
Our app shows a SCNView by default but lets users enter AR mode, where we show a ARSCNView on top of the SCNView.
Showing the ARSCNView works: the camera and virtual objects appear.
Exiting AR mode is what fails.
Instead of showing the SCNView…

Crashalot
- 33,605
- 61
- 269
- 439
1
vote
0 answers
Calling SCNView snapshot function inside of renderer(_:didRenderScene:atTime:) fails after a few frame
Calling the snapshot function of SCNView from inside of renderer(_:didRenderScene:atTime:) fails after a few frames.
Putting a breakpoint inside renderer(_:didRenderScene:atTime:) shows that the code gets executed for a few frames then stops.
1) Is…

Crashalot
- 33,605
- 61
- 269
- 439
1
vote
1 answer
Get World Coordinates of CGPoint in ARSCNView (Swift)
Problem
I'd like the following function to return to me the world coordinates of a point handled by a tap gesture. I've properly implemented it (using a few online resources) to work with the center point of the frame, but I am having trouble…

Anthony Krivonos
- 4,596
- 4
- 16
- 31
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…

thisIsTheFoxe
- 1,584
- 1
- 9
- 30
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,993
- 3
- 19
- 40
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
- 138
- 10
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
- 7,693
- 11
- 43
- 81
0
votes
1 answer
Programmatically created ARSCNView doesn't work
I have created ARSCNView programmatically as the below code. The app runs on my real iPhone (without crashing) but shows a blank/black screen. It doesn't ask for accessing the camera either (I have the line "Privacy - Camera Usage Description" in…

Tony
- 1,551
- 20
- 21
0
votes
0 answers
Different behaviour when using ARSCNView through UIViewControllerRepresentable
I am following a tutorial that is using ARSCNView with ARImageTrackingConfiguration to create an interactive AR Image Anchor. When you scan a specific image, a swift UI view is overlayed on top of it, and when the button is tapped in that Swift UI…

harcipulyka
- 117
- 1
- 6
0
votes
0 answers
Swift: Load a .dae model into SCNScene to use in ARSCNView
I created a method that downloads models from Firebase. I can check with this code, that soda.dae is in the cache folder.
Get cached models:
guard let cacheDirectory = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first else…

Gergő Csiszár
- 107
- 1
- 6
0
votes
0 answers
Distorted mesh when orientation and position of phone is changed
I'm trying to do 3D reconstruction using ARKit and SceneKit. I'm able to correctly save the mesh as a .usdz file. However, the mesh works well only when the position of phone doesn't change. As soon I start to move around to scan the environment,…

Hamza Mahmood
- 59
- 7