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

Unity2022.1.20 + ARFoundation4.2.6 camera background is not visible #33

Closed
chaoslife opened this issue Oct 27, 2022 · 9 comments
Closed
Assignees
Labels

Comments

@chaoslife
Copy link

Hello, I use Unity2022.1.20 and ARFoundation4.2.6 to test AR, I found that when opening the AR environment, the editor will report an error:

d3d11: failed to create 2D texture shader resource view id=1326 [D3D error was 80070057]

Then the AR video stream is invisible. I found that the ARCameraManager reported the error. When I switched to Unity2021.3.11, it could be used normally.

@chaoslife chaoslife added the bug Something isn't working label Oct 27, 2022
@KyryloKuzyk
Copy link
Owner

Hi,

Could you please fill out all the fields of the 'New issue' template?
Please also include all error stack traces in a text format.

@chaoslife
Copy link
Author

I'm very sorry for not filing an issue according by the template

After my investigation in the past few days, I found that it is a bug of KlakSpout. I don't know if this kind of bug can be solved.

keijiro/KlakSpout#81

@KyryloKuzyk
Copy link
Owner

KyryloKuzyk commented Nov 8, 2022

@chaoslife
Copy link
Author

The issue may be connected to this bug report: https://issuetracker.unity3d.com/issues/ios-disabling-ar-camera-background-kills-position-tracking-on-ios-in-arfoundation-4-dot-2-6

image

After upgrading to 4.2.7. problem still exists

image

@KyryloKuzyk KyryloKuzyk reopened this Nov 12, 2022
@KyryloKuzyk KyryloKuzyk changed the title Unity2022.1.20 + ARFoundation4.2.6 bus Unity2022.1.20 + ARFoundation4.2.6 camera background is not visible Nov 12, 2022
@KyryloKuzyk KyryloKuzyk removed the bug Something isn't working label Nov 12, 2022
@ethermammoth
Copy link

I've run into maybe same or related issue with that unity version + URP + ARFoundation 4.2.6.
Seems to be a unity issue in relation to how and especially when (timing issue) the image is blitted to the screen. I've rolled back to LTS version 2021.3.. and everything is working. Seems that unity did not test this, and at the same time they removed the easy option to choose newer version of ARFoundation (so you have to do it manually through the Package settings). Maybe this is related to the camera issues you are having. I only got the camera image to show through the slower CPU functions in that unity version.

@KyryloKuzyk
Copy link
Owner

I can confirm that this setup currently produces the black screen issue:

  • Unity 2022.1.23f1
  • URP 13.1.8

Workarounds are:

  1. Use Unity 2021.3 LTS and URP 12.1.8.
  2. Or use the built-in renderer.

Unfortunately, I can't fix the issue from the plugin's side.

@chaoslife What render pipeline do you use? Built-in or URP?

@andreobvio
Copy link

andreobvio commented Nov 22, 2022

Hey guys, I am also having a black screen problem after updating unity editor (from 2021.3.6f1 to 2022.1.23)

without URP:
but for now, what I discover is that if I change some attributes inside of the Camera. main, it starts working (change perspective to orthographic).

With URP:
I just change some configs inside the Universal Render Pipeline Asset and the camera started working.

Do you have any idea what could be?

@stale
Copy link

stale bot commented Dec 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 6, 2022
@KyryloKuzyk KyryloKuzyk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2023
@chaoslife
Copy link
Author

Hey guys, I am also having a black screen problem after updating unity editor (from 2021.3.6f1 to 2022.1.23)

without URP: but for now, what I discover is that if I change some attributes inside of the Camera. main, it starts working (change perspective to orthographic).

With URP: I just change some configs inside the Universal Render Pipeline Asset and the camera started working.

Do you have any idea what could be?

i use build-in rp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants