Hello,
I am building an application using Unity 2022.3.62f3 with the URP render pipeline and the latest zView / zCore Unity packages. I followed the official guidelines to set up the zView connection and UI controls, but I cannot get AR mode to work.
I have already implemented zView AR mode in other projects where it worked correctly. The only difference in this case is that I am using the URP render pipeline instead of the built-in one.
My application successfully connects to zView, and I can also pause the connection and start/stop/pause recordings. However, as soon as I launch AR mode, the application starts to break. All cameras get disabled, including the zCamera and the zView-instanced virtual cameras, and several errors start appearing (listed below).
Error 1
Failed to find zView AR mode URP scriptable renderer.
UnityEngine.Debug:LogError (object)
zSpace.zView.VirtualCameraAR:FindURPScriptableRendererAndFeatures (bool,int) (at Assets/Plugins/zSpace/zView/Scripts/VirtualCameraAR.cs:521)
zSpace.zView.VirtualCameraAR:SetUp (zSpace.zView.ZView,intptr,zSpace.zView.ZView/ModeSetupPhase) (at Assets/Plugins/zSpace/zView/Scripts/VirtualCameraAR.cs:130)
zSpace.zView.ZView:HandleModeSetup (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:5110)
zSpace.zView.ZView:UpdateConnection (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4812)
zSpace.zView.ZView:UpdateConnections () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4750)
zSpace.zView.ZView/<EndOfFrameUpdate>d__74:MoveNext () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:1233)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
This error appears even if I include the zView AR mode URP renderer asset in the scriptable render pipeline settings.
Error 2
Screen position out of view frustum (screen pos 0.000000, 0.000000, 20000.000000) (Camera rect 0 0 1920 1080)
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
zSpace.zView.VirtualCameraAR:RenderRGBUniversalRenderPipeline (zSpace.zView.ZView) (at Assets/Plugins/zSpace/zView/Scripts/VirtualCameraAR.cs:732)
zSpace.zView.VirtualCameraAR:Render (zSpace.zView.ZView,intptr,intptr) (at Assets/Plugins/zSpace/zView/Scripts/VirtualCameraAR.cs:444)
zSpace.zView.ZView:HandleModeActive (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:5235)
zSpace.zView.ZView:UpdateConnection (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4816)
zSpace.zView.ZView:UpdateConnections () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4750)
zSpace.zView.ZView/<EndOfFrameUpdate>d__74:MoveNext () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:1233)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
The screen position values change during runtime depending on the user’s eye tracking, so this error appears very frequently.
Error 3
Failed to render frame.
UnityEngine.Debug:LogError (object)
zSpace.zView.ZView:HandleModeActive (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:5239)
zSpace.zView.ZView:UpdateConnection (intptr) (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4816)
zSpace.zView.ZView:UpdateConnections () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:4750)
zSpace.zView.ZView/<EndOfFrameUpdate>d__74:MoveNext () (at Assets/Plugins/zSpace/zView/Scripts/ZView.cs:1233)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
This one is less frequent than Error 2, but still occurs quite often.
I also tried adding dedicated rendering cameras and zView URP cameras, but that did not solve the issue.
I would greatly appreciate any help in identifying or resolving this problem.
Thanks,
Edoardo