Are there any caveats I should know about when using rendertexture on cameras for Android / GearVR?
I’m using an extra camera with a rendertexture on it so I can sample the texture to compute its average color.
In the editor this works fine, but on device (Galaxy S7-8 GearVR) the texture is always black.
Are there any platform specific issues with rendertexture and Android? Like maybe minimum texture sizes or formats I need to use etc. ?
For those playing along at home. This is fixed! The issue is I had “don’t clear” on the camera that output to the rendertexture. (Figured it was good for performance) Apparently, on device this causes the camera to output black. I set it to “clear color” and now it works fine.
2 Likes
Hello, Sorry for the bump, I have this exact same issue, I can’t find the “don’t clear” on the camera.
It’s an option under Clear Flags on the Camera component -
thank you, the “clear color” is “solid color”