Closed hasionerin closed 2 years ago
@tdmowrer please helps me . This problem has puzzled me for a long time. thanks a lot !
I can't help but wonder if this might be a timing issue.
To validate it's not can you try just using Graphics.Blit or use a blit command buffer and add it to the CameraEvent.AfterEverything event like so:
commandBuffer.clear();
commandBuffer.ClearRenderTarget(true, false, Color.clear);
commandBuffer.Blit(null, myRenderTarget, material);
Camera.main.AddCommandBuffer(CameraEvent.AfterEverything, commandBuffer);
then read the texture OnPostRender.
Closing due to inactivity
Unity Version : Unity2020.3.18 ARFoundation Version : 4.2.1 ARCore XR Plugin 4.2.1 Platform : Android
I Get the ARCamera Image Real-time, Render to a RenderTexture, then ReadPixels from the RenderTexture ,and set to a RawImage , unfortunately, the RawImage flickers color .
follow is my code:
`
it like flicker every few frames . It's too strange . and it works fine on ios devices. just error on android devices . has anyone had this problem? and how to solve this problem?
i take some photos :