KyryloKuzyk / AR-Foundation-Remote-support

Support page for the 'AR Foundation Remote' plugin on the Asset Store
https://assetstore.unity.com/packages/tools/utilities/ar-foundation-remote-2-0-201106
9 stars 0 forks source link

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

Closed chaoslife closed 1 year ago

chaoslife commented 1 year ago

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.

KyryloKuzyk commented 1 year ago

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 commented 1 year ago

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.

https://github.com/keijiro/KlakSpout/issues/81

KyryloKuzyk commented 1 year ago

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

chaoslife commented 1 year ago

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

ethermammoth commented 1 year ago

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 commented 1 year ago

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

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 commented 1 year ago

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[bot] commented 1 year ago

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.

chaoslife commented 1 year ago

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