- Home /
iOS WebCamTexture Blur Get/Set Pixels
Hello !
I am currently using a WebCamTexture to display my device camera feed and take a simple snapshot a the click of a button. Here's some code showing how I take my snapshot :
snapshot= new Texture2D(cameraTexture.width, cameraTexture.height);
snapshot.SetPixels(cameraTexture.GetPixels());
snapshot.Apply();
webCamTexture.mainTexture = snapshot;
Here my cameraTexture is my WebCamTexture object, and my webCamTexture is my UITexture object (where the texture is displayed).
This code works perfectly well on Android devices, the picture looks great. However, on the two devices I've tested for iOS (iPad2 and iPad3), the snapped image is extra blurry !
Am I forgetting to focus the camera or something ?
Help is appreciated !
Bypp
Done some more testing, apparently this happens on all iOS devices and never on any android device. Is there a workaround for this ?
you can use a very good plugin available on assets store http://u3d.as/8t8