Posts

Post not yet marked as solved
3 Replies
1.8k Views
Is anyone else seeing issues with ARkit Body Tracking and SwiftUI?I am finding the the face tracking works fine if you have a view that appears with ARKit, does the tracking then goes away. This can consistently be done over and over by switching to the view and using it.But I can't do the same with BodyTracking. If I have a view that is making use of BodyTracking then it only works if I show ONLY the view with the body tracking as the very first thing to appear when running the app. If I show any other views before switching to the one with the BodyTracking then it does not work. Also if I display that first view (which works fine) the switch to another view and back to the BodyTracking view then it no longer works.This feels like a bug in ARKit, SwiftUI or iPadOS (don't have a phone to try it out).Anyone else running into problems with SwiftUI and BodyTracking?I get the following output when running my App (both when it works and when it doesn't). Feels to me like SwiftUI is causing issues with the tracking.2019-09-30 17:05:24.543484+1300 BodyTracking [2080:711242] Metal GPU Frame Capture Enabled2019-09-30 17:05:24.543752+1300 BodyTracking [2080:711242] Metal API Validation Enabled2019-09-30 17:05:25.318275+1300 BodyTracking [2080:711242] Compiler failed to build request2019-09-30 17:05:25.318408+1300 BodyTracking [2080:711242] [Graphics] makeRenderPipelineState failed [output of type ushort is not compatible with a MTLPixelFormatR16Float color attachement.].2019-09-30 17:05:25.318437+1300 BodyTracking [2080:711242] [Graphics] makeRenderPipelineState failed.2019-09-30 17:05:25.845971+1300 BodyTracking [2080:711618] [Technique] World tracking performance is being affected by resource constraints [3]2019-09-30 17:05:25.846030+1300 BodyTracking [2080:711618] [Technique] VIO error callback: 113455.122269, 3, Frame time stamps are either out of order or repeating
Posted
by kbar22.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
In my project I have a SwiftUI that embeds the UIViewController for the body tracking example. This all compiles and runs fine on my iPad.However in my project I have other SwiftUI views. When I am trying to view them in the SwiftUI preview window (I am also on Catalina 10.15 beta 3) it is not able to display this view, even though it has absolutely nothing to do with the BodyTracking example it still complains about this file and displays the message "Use of undeclared type 'BodyTrackedEntity' ".I have even commented out the PreviewProvider for the BodyTracking view and it still has this error.My guess is that there is an issue with XCode 11 Beta 3 when trying to preview views it looks through every view and compiles all of them to see if they are correct, but it shoud only care about the one I have selected. Also it should know that the BodyTracking code won't work and simply ignore is warnings.Anyone else having these kind of issues when trying to make a SwiftUI based project that uses RealityKit features?
Posted
by kbar22.
Last updated
.