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 environment depth texture returned by TryAcquireEnvironmentDepthCpuImage in AROcclusionManager #1106

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

Comments

@marcinwalus
Copy link

TryAcquireEnvironmentDepthCpuImage in AROcclusionManager returns image with incorrect size.
Having EnvironmentDepthMode in AROcclusionManager set to Best environmentDepthTexture property returns texture with size 2048x1536. Using TryAcquireEnvironmentDepthCpuImage on same occlusion manager returns XRCpuImage of size 256x192

To Reproduce
Steps to reproduce the behavior:

  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. In DisplayDepthImage.cs create code to acquire depth image
  4. Run application on device and attach debugger.

Expected behavior
m_OcclusionManager.TryAcquireEnvironmentDepthCpuImage should return image with dimensions: 2048x1536

Actual behavior
m_OcclusionManager.TryAcquireEnvironmentDepthCpuImage returns image with dimensions: 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

XRCpuImage-DepthImage
Screenshot 2023-09-27 at 10 30 15

@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 Sep 28, 2023
@marcinwalus
Copy link
Author

@andyb-unity IN-63824

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