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

Camera background not working on Windows with error 'd3d11: failed to create 2D texture shader resource view' #97

Open osaydMadi opened 7 months ago

osaydMadi commented 7 months ago

Hello,

I'm using Unity 2021.3.31, AR foundation 4.2.9, AR code 4.2.9, and building for Android. I followed everything from here and I have 'Reload Domain' enabled. XR plug-in Windows provider is set to AR foundation remote. the plane feature is working, and also the raycast. when click play, I have this warning: d3d11: Creating a default shader resource view with dxgi-fmt=0 for a texture that uses dxgi-fmt=29 and this error d3d11: failed to create 2D texture shader resource view id=1419 [D3D error was 80070057]

What should I do?

thanks

KyryloKuzyk commented 7 months ago

Just checked all examples with AR Foundation 4.2.9 and Unity 2021.3.32, but, unfortunately, wasn't able to replicate the issue.

Are there any other errors that can help me in debugging the issue? This additional info from the bug report template would also help a lot:

  1. Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button.
  2. Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file.
  3. Attach your 'Packages/manifest.json' file to this bug report.
  4. Your AR device model and its OS version. Errors, warnings, and stack traces Add all errors/warnings from the Unity Editor and from the AR Companion if any. Please send errors and warnings as text (with all stack traces), NOT as screenshots (you can select all console output by pressing ctrl/cmd+a, then copy it by pressing ctrl/cmd+c).
osaydMadi commented 7 months ago

Here is the needed info: 2: The issue also happens in the examples 3: 2.0.34-release.0, URP 12.1.13 4: Attached 5: Samsung s22 ultra Android 13 Logcat: 2023/11/24 14:41:23.644 1189 2023 Info Unihal UniDebugLog.cpp: __unihal_log_status_update: 57: UpdateLogStatus 0000000d ERR 1 PERF 0 WARN 4 INFO 8 DEBUG 0 DUMP 0 STRACE 0 META 0 and I have this in the editor: d3d11: failed to create 2D texture shader resource view id=1120 [D3D error was 80070057]

manifest.json

osaydMadi commented 7 months ago

Anyone?

KyryloKuzyk commented 7 months ago

@osaydMadi Huge thanks for the additional info! It seems like your issue is caused by some specific hardware combination, which I'm unable reproduce. I have a lot of Windows users, but none of them have this problem, and judging from my google search, this error code is quite rare and can be caused by a lot of hardware-specific reasons.

I you're not satisfied with your purchase and you don't have another hardware configuration to run the plugin on, please send me your invoice number in private messages and I'll issue the refund. I'm very sorry you're experiencing this issue, but sometimes there are things that are out of my control.

KyryloKuzyk commented 7 months ago

@osaydMadi Can you please try to use the plugin in a project without the URP package? This will at least narrow the potential places for me to look at.

KyryloKuzyk commented 7 months ago

Please also try to switch the Color Space to Gamma and tell me if this helps.

way2tushar commented 7 months ago

@osaydMadi Can you please try to use the plugin in a project without the URP package? This will at least narrow the potential places for me to look at.

@KyryloKuzyk I'm using a standard render pipeline (build-in) with Gamma Color space. Any Idea?

Screenshot 2023-12-02 090536

KyryloKuzyk commented 6 months ago

Unfortunately, I still don't have a resolution for this issue. Please tell me if you want to get a refund for your purchase and send me your Invoice Number privately.

KyryloKuzyk commented 1 week ago

https://forum.unity.com/threads/arfoundation-texture-creation-using-linear-space-causes-errors.1605102/#post-9898062