arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

HumanSegmentation Depth Mode only works at Standard resolution

Open jBachalo opened this issue 7 years ago • 3 comments

Unity 2019.1.0f1

If setting Depth Mode to anything other than Standard it doesn't work and the following runtime error is seen in Xcode

(Filename: currently not available on il2cpp Line: -1)

ArgumentException: Failed SupportsTextureFormat; format is not a valid TextureFormat at UnityEngine.SystemInfo.SupportsTextureFormat (UnityEngine.TextureFormat format) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Texture.ValidateFormat (UnityEngine.TextureFormat format) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Boolean mipChain, System.Boolean linear, System.IntPtr nativeTex) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Texture2D.CreateExternalTexture (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat format, System.Boolean mipChain, System.Boolean linear, System.IntPtr nativeTex) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.XR.ARFoundation.ARTextureInfo.CreateTexture (UnityEngine.XR.ARSubsystems.XRTextureDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.XR.ARFoundation.ARTextureInfo.GetUpdatedTextureInfo (UnityEngine.XR.ARFoundation.ARTextureInfo textureInfo, UnityEngine.XR.ARSubsystems.XRTextureDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.XR.ARFoundation.ARHumanBodyManager.UpdateTexturesInfos () [0x00000] in <00000000000000000000000000000000>:0

jBachalo avatar Jun 21 '19 19:06 jBachalo

Same here: Unity 2019.1.8 iOS 17A5508m

boboEmily avatar Jul 15 '19 04:07 boboEmily

same problem. higher resolution would be awesome

ghost avatar Aug 09 '19 07:08 ghost

We are surfacing all of the available resolutions that ARKit provides. See: https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.XR.ARFoundation.AROcclusionManager.html#UnityEngine_XR_ARFoundation_AROcclusionManager_humanSegmentationDepthMode

mdurand42 avatar Apr 27 '20 22:04 mdurand42