arkit

How to load a model and textures from a remote server using ARKit?

我们两清 提交于 2021-02-09 11:00:09
问题 I am working on an ARKit app using Swift in Xcode trying to load models from a remote server but am having an issue getting the model and the textures / materials to load together and have the textures / materials display correctly. I have gone through a few links and tutorials and get the model to load but the materials do not show. I have created models in the scene editor, or downloaded them and converted to .scn files, locate them in Finder and then uploaded them to a web-server. Just the

ARKit – Spatial Audio barely changes the volume over distance

大城市里の小女人 提交于 2021-02-08 07:17:38
问题 I created a SCNNode and added an Audio to it. It is a Mono audio. Everything is set up correctly. It is working as Spatial Audio, that's not the problem. The problem is that as i get closer or far away it barely changes the volume. I know it changes if i get very very far away, but it's nothing like Apple demonstrated here: https://youtu.be/d9kb1LfNNU4?t=23 Some other games i see the audio volume really changing from one step distance. With mine, with one step you can't even tell the volume

ARKit : Make virtual 3D objects to point towards camera

懵懂的女人 提交于 2021-02-08 03:46:48
问题 I am trying to build an app based on ARKit to place 3D virtual objects on to the plane that is detected. I found a useful project on GitHub Placing Virtual Objects This does the job exactly what I am looking for. However, when any virtual object is placed in front of the camera, it may or may not face the camera. Sometimes 3D objects look in the opposite direction of camera I have tried to add SCNconstraints to virtual object node and tweak the rotation and orientation of 3D Models to look at

ARKit : Make virtual 3D objects to point towards camera

微笑、不失礼 提交于 2021-02-08 03:46:28
问题 I am trying to build an app based on ARKit to place 3D virtual objects on to the plane that is detected. I found a useful project on GitHub Placing Virtual Objects This does the job exactly what I am looking for. However, when any virtual object is placed in front of the camera, it may or may not face the camera. Sometimes 3D objects look in the opposite direction of camera I have tried to add SCNconstraints to virtual object node and tweak the rotation and orientation of 3D Models to look at

How to scale DAE models correctly in ARKit and SceneKit?

牧云@^-^@ 提交于 2021-02-07 08:41:24
问题 I'm currently trying to combine the following sources: Apples SceneKit Vehicle Demo, Resp. its Swift version, ARKit by example, and resp. its Swift version. Each project on its own works like a charm (although I changed the vehicle demo so that the car can be controlled by on-screen buttons). Now, when I try to combine both projects to create an augmented reality racing game, I run into problems regarding the size of the .dae model of the car: it's too big. I can scale the model using the

Occlusion Material or Hold-Out Shader in ARKit and SceneKit

拜拜、爱过 提交于 2021-02-06 12:30:41
问题 I have seen some examples demo of ARKit where material A is blocking material B, kind of creating occlusion effect, or black hole, or masking. But all of them seems to be using Unity engine (I might be wrong). I wanted to do this using what Apple provide already. Or maybe using Metal Shader. Wondering if anyone knows a trick that allows this for ARKit or even in SceneKit term, when 2 objects are overlapping, but wanting one object to occlude the other object, leaving the other object empty.

Occlusion Material or Hold-Out Shader in ARKit and SceneKit

断了今生、忘了曾经 提交于 2021-02-06 12:29:51
问题 I have seen some examples demo of ARKit where material A is blocking material B, kind of creating occlusion effect, or black hole, or masking. But all of them seems to be using Unity engine (I might be wrong). I wanted to do this using what Apple provide already. Or maybe using Metal Shader. Wondering if anyone knows a trick that allows this for ARKit or even in SceneKit term, when 2 objects are overlapping, but wanting one object to occlude the other object, leaving the other object empty.

Combining CoreML and ARKit

不问归期 提交于 2021-02-06 09:24:34
问题 I am trying to combine CoreML and ARKit in my project using the given inceptionV3 model on Apple website. I am starting from the standard template for ARKit (Xcode 9 beta 3) Instead of intanciating a new camera session, I reuse the session that has been started by the ARSCNView. At the end of my viewDelegate, I write: sceneView.session.delegate = self I then extend my viewController to conform to the ARSessionDelegate protocol (optional protocol) // MARK: ARSessionDelegate extension

ARKit - How to load .scn and texture file from server URL

橙三吉。 提交于 2021-02-06 09:19:04
问题 I try to load dynamically .scn and texture files from server URL in ARKit application. I have achieved loading .scn file from web url this way.. But after running I am not seeing any textures on device. I get following error message. ARKitExample[3016:995067] [SceneKit] Error: Failed loading : <C3DImage 0x1d42e1980 src:file:///var/containers/Bundle/Application/622ACF79-2318-4953-A9AE-9A7F2B453AFB/ARKitExample.app/textures/lamp_DIFFUSE.png [0.000000x0.000000]> ARKitExample[3016:995067]

How to draw dashed line in ARKit (SceneKit) like in the Measure app?

旧时模样 提交于 2021-02-05 05:07:39
问题 Just wanted to know is it possible (I know it is, but how) to draw dashed line in ARSCNView like in the Measure app? Maybe there is a way to use scene nodes out of the box, idk. I've been using the SCNCylinder to draw a straight line and IDK is it possible to reuse it and adjust or we have to use a really different way to make the dashed line. import SceneKit class CylinderLineNode: SCNNode { private(set) var cylinder: SCNCylinder private(set) var positionA: SCNVector3 private(set) var