Edge Detection Camera Script Not Working (Android)

Good afternoon, unity forum wizards!

I am currently working on a game for Android and would like to implement Edge Detection (Script) on the main camera alongside a UI camera. Whilst this works perfectly and looks gorgeous in the editor play window, when compiled and ran on an Android device (Android 5.1.1 Rooted) it shows buggy textures everywhere on the screen apart from the UI.

  • I am building to Android 4.1 and up.
  • Using forward rendering path.

*Auto Graphic API = True

Multithreaded Rendering = False

Static Batching = True;

Dynamic Batching = True;

GPU Skinning = False;

VR Support = False;*

As far as I understand Edge Detection (Script) should work on mobile devices as the documentation states: “This effect should run on all hardware that Unity supports.”

Examples below.

Editor Play Mode:
77145-workingedgedetect.png

Android Build:
77146-edgedetectnotworking.jpeg

How would I go about fixing this?

Much Appreciated,

VoidFletcher

after some fiddling with the code and your further explanation of what is happening I have gotten the script to work! thank you for your help! in the end I changed most of the "transform.eulerAngles" to "transform.localEulerAngles" which made it much more accurate and I changed all the Quaternions to new Vector3's (I also made some other changes for accuracy)

–

1 Answer

1

Figured out that this was due to none of my camera’s clearing the flags.

To anyone else experiencing this issue, simply have one of your cameras:
Clear Flags = Solid Color.

I will leave this here incase anyone else has this problem!