Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcinwalus opened this issue Sep 27, 2023 · 2 comments
Labels
bug A bug in an ARFoundation-related package needsinvestigation Requires further investigation by Unity

Comments

@marcinwalus
Copy link

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):

  • iPhone 13 Pro Max
  • OS: 17.0.2
  • Unity version: 2022.3.10
  • ARFoundation version: 5.1.0-pre.10

DepthImages
EDT
EDCT
EDTvsEDCT

@marcinwalus marcinwalus added the bug A bug in an ARFoundation-related package label Sep 27, 2023
@andyb-unity andyb-unity added the needsinvestigation Requires further investigation by Unity label Dec 11, 2023
@andyb-unity
Copy link
Collaborator

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
Copy link
Author

marcinwalus commented Dec 18, 2023

@andyb-unity IN-63818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in an ARFoundation-related package needsinvestigation Requires further investigation by Unity
Projects
None yet
Development

No branches or pull requests

2 participants