Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.07k stars 1.15k forks source link

[Bug] Incorrect size of environmentDepthConfidenceTexture returned by AROcclusionManager #1105

Open marcinwalus opened 1 year ago

marcinwalus commented 1 year ago

After setting EnvironmentDepthMode in AROcclusionManager to Best environmentDepthTexture property returns texture with size 2048x1536. Confidence texture (environmentDepthConfidenceTexture property) returns texture with size 256x192.

Steps to reproduce the behaviour:

  1. Open "Assets/Scenes/Occlusion/DepthImages.unity" scene from "ARFoundation samples"
  2. Change EnvironmentDepthMode property to Best in AROcclusionManager attached to "Main Camera" game object
  3. Put breakpoint in DisplayDepthImage.cs in Update method to be able to read humanDepthTexture (i.e. line 287)
  4. Run application on device and attach debugger.

Expected behaviour m_OcclusionManager.environmentDepthConfidenceTexture dimensions should be: 2048x1536 (same as environmentDepthTexture)

Actual behaviour m_OcclusionManager.environmentDepthConfidenceTexture dimensions are: 256x192

Smartphone (please complete the following information):

DepthImages EDT EDCT EDTvsEDCT

andyb-unity commented 11 months ago

Hi @marcinwalus, can you please file a bug for this issue? Our GitHub issues are unofficial and may never be seen by the development team. Filing a bug is the official way to report bugs to Unity.

We can keep this issue open in the meantime. Once you have a bug number, please share it here for reference.

marcinwalus commented 11 months ago

@andyb-unity IN-63818