Questions tagged [arscnview]

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

83 questions
1
vote
1 answer

ARSCNView as VRView

Long things short: I want make my iOS application Mac friendly. In my case I want (I don‘t know how to do) to use my ARSCNViews as an view that presents me everything in VR. I don‘t want to have any special room. I only want to show…
Michael
  • 185
  • 1
  • 11
1
vote
1 answer

ARKit + SceneKit not rendering any shadows

I'm using ARKit and SceneKit to render a very simple scene with a sphere hovering above a plane. However no matter what I try, I cannot get shadows to render at all. The sphere is shaded properly from the light, but no shadows are drawn. Here's my…
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
1
vote
0 answers

Change SCNReferenceNode width and height ratio

Hey Everyone)) I am new at ARKit and I have one problem. I can't change programmatically SCNReferenceNode width and height ratio. I tried to change sacle x and y in ".scn" file and it is working. But when I change it in code, it is not working. …
1
vote
0 answers

Using SCNRenderer with ARKit makes weird result

I'm trying to export a depth texture being created during rendering pass of ARSCNView. In order to do that, I wrote a code that renders SCNScene in the background with a custom MTLRenderPassDescriptor. When I trace the resources bound to GPU using…
Chard Lee
  • 11
  • 3
1
vote
1 answer

Crash when instantiating ARSCNView for the second time

I have a problem in my iPhone app when trying to instantiate an ARSCNView again, after destroying it. In my ViewController I programmatically create an ARSCNView for motion capture interaction: func addARSceneView() { arSceneView =…
1
vote
1 answer

How to change intensity or color of light for physicallyBased lightingModel?

I'm using ARKit and trying to apply a texture to a face anchor, following an Apple example. However, the texture has an extremely bright light applied to it. How can I reduce the intensity or color of the light created by physicallyBased…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
1 answer

usdz object is not moving while loaded with SCNReferenceNode

I was following Apple Documentation and example project to load 3d Object using .SCN file with Virtual Object (subclass of SCNReferenceNode) class but suddenly i needed to change the model from .scn to usdz . Now my usdz object is loading…
Hanzala Raza
  • 149
  • 1
  • 16
1
vote
1 answer

3D object is hovering while moving camera

3D object place perfectly in ARSCNView but problem is that when object placed in AR and move camera right, left, top and bottom too fast then 3D object started hovering and dancing anywhere with the planeNode how I can fix this issue, trying lots of…
1
vote
1 answer

Reset ARSCNView background contents to its original source

I'm capturing ARFrame's and applying filters, which works fine, but I want to turn off the filters and go back to the original camera feed, but I'm running into issues. This code is applying the filter: func session(_ session: ARSession, didUpdate…
Joe
  • 355
  • 1
  • 10
1
vote
0 answers

Prevent SCNText's Pivot Point from moving to its Left Alignment Corner

I need to rotate a SCNText object from the place in the sceneView I initially set it to. When I create the SCNText I adjust its pivot point so that it rotates on it's center. The issue is after I do that it moves it self to its leftAlignment…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
1
vote
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
  • 421
  • 1
  • 5
  • 18
1
vote
1 answer

get current fram as uiimage from ARWorldTrackingConfiguration?

I need to extract a frame that the physical camera sees (without SCNScene added) while ARWorldTrackingConfiguration is configured. I am new to ios so maybe I am missing something but I wasn't able to do this. Any help appreciated on how to do…
temo
  • 363
  • 1
  • 4
  • 11
1
vote
1 answer

Multilayer scn file taking time to render arkit

While placing .scn file using ARKit 2 when user taps on screen models with single layer are rendering on screen instantly but problem arrises when multilayer(2 to 3 layers) .scn file taking about 1 to 3 seconds to render, kind of stuck UI while…
1
vote
1 answer

Get the position of a sphere created in scn file

I created an scn file using Xcode (as you can see below), where there are two nodes (a sphere and a platform). I set up the position of the sphere: I used a class which creates a node platform, which you can resize and move: Screenshot After…
Edoardo
  • 657
  • 7
  • 24
1
vote
1 answer

ARKit hitTest(_:options:) to select placed 3d-objects not working

I am trying to select an object which has been placed on a detected plane in order to perform various task on it such as rotating through gestures. In order to search for placed objects and avoid getting hitTestResults of irrelevant nature (eg.…
A. Claesson
  • 529
  • 4
  • 16