GetPixels crashes on oculus quest only. How can I safely read the framebuffer on Oculus quest?
Hi
I've been working on some functionality that requires capturing the screen to an RGB array for later processing/streaming.
I've been using a pretty well documented method of calling
GetPixels() on the a child class of UGameViewportClient which works
great on every platform I've tried it on (windows, windows with
vr/multiview enabled, android phone) but it crashes on Oculus quest android in
both opengl ES3 and Vulkan. I suspect the mobile-multiview + android
combination is causing issues. A thread describing the method is here (edit, I can't post links on these forums because my account is too young).
Ultimately I'd just like to know if there's a way I can copy the
backbuffer/framebuffer to an TArray
on the Oculus quest without crashing. Ideally with acceptable enough performance to allow the data to be used for streaming.
I've tried this with the oculus branches 4.22 and 4.24 with opengles3 on both and vulkan on 4.24.
Thank you for your time.
