Closed ROBYER1 closed 4 months ago
Hello @ROBYER1, Thanks for reaching out!
I've got some questions:
@SLJLMacarit This happens in separate projects on separate PCs but the setup was the same:
Here is a fresh copy of a test project made from scratch, same issue happens there in it with the Zed 2i, Unity2023.1.19f1 https://drive.google.com/file/d/1jGSEm5H43yZzbM6CfEIPtmNSowGFaoBc/view?usp=sharing
I am experiencing this issue as well when using the body tracking module, but only when the MirrorMode property under Avatar Control is enabled. Without mirror mode, the camera feed remains visible. Using Unity 2022.3.13f1 and URP v14.0.9
In our scenario, mirror mode remains unticked/off and we don't intend to use mirror mode
@RomanCalderon @ROBYER1 I haven't been able to take a look yet, I'll do it asap, but from what you're saying I understand that it only happens with the Body Tracking scene. Is that the case?
Hey @SLJLMacarit thanks for looking into this. It happens for me when using the body tracking module component, both within the example scene provided in the ZED Unity package and when I set up a new scene entirely, using the module + ZED rig mono.
All functionality seems to work ok, but when mirror mode is enabled, the feed goes blank after a few frames.
@RomanCalderon @ROBYER1 I haven't been able to take a look yet, I'll do it asap, but from what you're saying I understand that it only happens with the Body Tracking scene. Is that the case?
Yes, this is only happening in the body tracking scene for us, and is happening without mirror mode enabled. Other test scenes work fine but I noticed the body tracking scene uses a mono camera rig.
@ROBYER1 I finally managed to take a look. It seems that the way the mirror is done doesn't work in URP. You can either disable it or modify the code to flip the X scale value of the "ZEDview" canvas in the scene instead of the "Frame" object.
I'll log it for an update, thanks for the report, and happy New Year!
What if this issue is happening when I'm not using Mirror mode? I haven't been using Mirror mode at all although I know other people mentioned it causing issues also.
Can you please confirm if there is a fix for this without any use of mirror mode like in my original post on this issue?
I haven't managed to reproduce the issue without mirror mode on my side.
To totally rule it out, can you send how the "Frame" object's Transform looks in the Inspector at runtime, both with mirror mode enabled and not? It's located under ZED_Rig_Mono > Camera_Left > Frame.
(Note: you have to start the scene with mirror mode enabled or not to change the camera view, it doesn't update at runtime)
On my side for example, the X scale is negative, and in URP it produces a texture stretched to 0 scale.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
Preliminary Checks
Description
Started a new Unity project using URP in Unity 2023.1.19f1, imported the SDK and started running the body tracking scene. Once the camera spinner disappears, the camera feed shows for a second then turns black. This is happening with two identical Zed 2i cameras on two different PCs here - one is a HP Zbook laptop on Win11 and the other is a Windows 10 desktop PC, both running RTX 2070 GPUs
Steps to Reproduce
Expected Result
Virtual Canvas camera image should show the camera feed
Actual Result
Virtual canvas camera image doesn't show the camera feed, body tracking does work however. See the issue here in a gif, camera goes black after a second![loading](https://github.com/stereolabs/zed-unity/assets/10745594/328d07f2-4ecf-485b-9f62-d8ab42a226ef)
ZED Camera model
ZED2i
Environment
Anything else?
No response