arkit

Xcode 9 GM - Export and Upload to App Store crashing

跟風遠走 提交于 2019-12-03 11:55:55
I'm trying to upload my app that uses ARKit (Unity build) to iTunes Connect for TestFlight distribution. While both exporting and uploading to app store processes from Xcode -> Organizer I see crash on "Stripping extended attributes for APPNAME.app". I checked all configuration of bitcode and symbols on/off, signing automatically, manually. Deployment target of my project is iOS 10, as 11 cannot be set. I also tried following steps from simillar thread ( https://forums.developer.apple.com/thread/83219 ) and added App Store 1024 icon to Images.xcassets. Any ideas why Xcode is crashing?

Show bounding box while detecting object using ARKit 2

南笙酒味 提交于 2019-12-03 10:21:03
问题 I have scanned and trained multiple real world objects. I do have the ARReferenceObject and the app detects them fine. The issue that I'm facing is when an object doest not have distinct , vibrant features it takes few seconds to return a detection result, which I can understand. Now, I want the app to show a bounding box and an activity indicator on top the object while it is trying to detect it. I do not see any information regarding this. Also, if there is any way to get the time when

SceneKit - how to get animations for a .dae model?

我的梦境 提交于 2019-12-03 09:56:50
问题 Ok, I am working with ARKit and scene kit here and I am having trouble looking at the other questions dealing with just scene kit trying to have a model in .dae format and load in various animations to have that model run - now that we're in iOS11 seems that some solutions don't work. Here is how I get my model - from a base .dae scene where no animations are applied. I am importing these with Maya - var modelScene = SCNScene(named: "art.scnassets/ryderFinal3.dae")! if let d = modelScene

Creating a custom SCNGeometry polygon plane with SCNGeometryPrimitiveType polygon crash/error

僤鯓⒐⒋嵵緔 提交于 2019-12-03 08:31:42
I'm trying to create a custom SCNGeometry in the form of a plane with custom shape, which could be placed in an ARKit session. I'm using the option SCNGeometryPrimitiveTypePolygon in the following method which seems to work fine: extension SCNGeometry { static func polygonPlane(vertices: [SCNVector3]) -> SCNGeometry { var indices: [Int32] = [Int32(vertices.count)] var index: Int32 = 0 for _ in vertices { indices.append(index) index += 1 } let vertexSource = SCNGeometrySource(vertices: vertices) let indexData = Data(bytes: indices, count: indices.count * MemoryLayout<Int32>.size) let element =

ARkit - Loading .scn file from Web-Server URL in SCNScene

ε祈祈猫儿з 提交于 2019-12-03 07:35:51
问题 I am using ARKit for my application and I try to dynamically load .scn files from my web-server(URL) Here is a part of my code let urlString = "https://da5645f1.ngrok.io/mug.scn" let url = URL.init(string: urlString) let request = URLRequest(url: url!) let session = URLSession.shared let downloadTask = session.downloadTask(with: request, completionHandler: { (location:URL?, response:URLResponse?, error:Error?) -> Void in print("location:\(String(describing: location))") let locationPath =

ARKit vs SceneKit coordinates

一曲冷凌霜 提交于 2019-12-03 07:25:56
I'm trying to understand the difference between the different element introduced in ArKit and their maybe equivalents in SceneKit: SCNNode.simdTransform vs SCNNode.transform . In ARKit, it seems that people use SCNNode.simdTransform instead of SCNNode.transform . How do they differ? simdTransform seems to use column major order, while transform (SCNMatrix4) is row major. How do I convert one to the other? Just transpose? I've the impression that the tracking doesn't work as well if I use transform instead of simdTransform . Is that expected or just an impression? If I set one property, what

How to transform vision framework coordinate system into ARKit?

家住魔仙堡 提交于 2019-12-03 06:53:15
问题 I am using ARKit (with SceneKit) to add the virtual object (e.g. ball). I am tracking real world object (e.g. foot) by using Vision framework and receiving its updated position in vision request completion handler method. let request = VNTrackObjectRequest(detectedObjectObservation: lastObservation, completionHandler: self.handleVisionRequestUpdate) I wants to replace the tracked real world object with virtual (for example replace foot with cube) but I am not sure how to replace the

Metal file as part of an iOS framework

不想你离开。 提交于 2019-12-03 06:19:02
I am trying to create a framework that works with METAL Api (iOS). I am pretty new to this platform and I would like to know how to build the framework to work with .metal files (I am building a static lib, not dynamic). Should they be a part of the .a file, or as a resource files in the framework bundle? Or is there an other way to do that? Thanks. Update: For those who tackle this - I ended up following warrenm's 1's suggested option - converted the .metal file into a string and calling newLibraryWithSource:options:error: . Although it is not the best in performance it allowed me to ship

Show bounding box while detecting object using ARKit 2

不想你离开。 提交于 2019-12-03 04:07:51
I have scanned and trained multiple real world objects. I do have the ARReferenceObject and the app detects them fine. The issue that I'm facing is when an object doest not have distinct , vibrant features it takes few seconds to return a detection result, which I can understand. Now, I want the app to show a bounding box and an activity indicator on top the object while it is trying to detect it. I do not see any information regarding this. Also, if there is any way to get the time when detection starts or the confidence percentage of the object being detected. Any help is appreciated. It is

How to create realistic .scn files?

风流意气都作罢 提交于 2019-12-03 01:41:35
问题 Looking at the apple sample AR app, there are many realistic looking objects (cup, candle, etc). However working with the scene kit editor on Xcode it is clear that this only allows you to create basic objects. My question is, what software/file can be used to create realistic scn objects? I'm sure that there is software that allows you to create 3D models and covert them to scn files. I just don't know which software to use or what files can be converted to scn Note: I understand that this